Re: [R] Question on Differentiating Two Populations in R

2004-08-08 Thread Jim Brennan
If I am understanding correctly you can have a look at
 ? t.test
and ? wilcox.test
depending on assumptions.

Jim

- Original Message -
From: James R. Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 07, 2004 9:38 PM
Subject: [R] Question on Differentiating Two Populations in R


 Hello All,

 Forgive me if this a blatantly newbie question or not germane to the
 list, but i was wondering if my current approach to my problem is the
 best way in R.

 I have two experimental datasets (positive and negative) of differing
 lengths and a large number of ways of numerically expressing the data
 by using various scales to represent each data point.

 I am looking for a scale that will allow me to differentiate between
 the positive and negative populations.

 Each dataset is simply a list of numbers: 43 numbers in the positive
 case and 9 in the negative (small sets, i know, but it's all the data i
 currently have) and I have hundreds of scales.

 I assign each dataset to a variable using scan() (each are in separate
 files).

 My initial comparison of the two datasets is simply a boxplot with the
 hope that the two do not overlap too much...

 Is this the way you would approach this problem? Is there an easier way
 of doing this in R?

 Any and all help is greatly appreciated!

 james

 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Forcing Sweave text to fit

2004-08-08 Thread Doran, Harold
List
 
I am preparing a document in Sweave where I would like the R output on the file. So I 
have used
 
 echo=T=
text
@
 
In some cases, I have text that is very long. Consequently, the tex file has my text 
going way out into the margins and the document looks a little sloppy. Is there a way 
to force the text to wrap around instead of going out into the margins?
 
Thanks,
 
Harold
 
 

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Forcing Sweave text to fit

2004-08-08 Thread Deepayan Sarkar
On Sunday 08 August 2004 11:24, Doran, Harold wrote:
 List

 I am preparing a document in Sweave where I would like the R output
 on the file. So I have used

  echo=T=
 text
 @

 In some cases, I have text that is very long. Consequently, the tex
 file has my text going way out into the margins and the document
 looks a little sloppy. Is there a way to force the text to wrap
 around instead of going out into the margins?

AFAIR, you want to set 

options(width = 40) 

or something similar in a (preferably non-echoed) 'initialization' chunk 
at the top of your document. 

Deepayan

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] R packages install problems linux - X not found (WhiteBox EL 3)

2004-08-08 Thread Dr Mike Waters
Good evening everyone,

 

I am used to using R under Windows, but have done an install of 1.9.1 under
WhiteBox linux 3 (based on RHEL 3). This all went without a hitch, along
with most of the additional package installs. However, while trying to
install car and rgl I hit a problem regarding the X environment not being
found. As I was doing the install from a console *within* the X environment,
this is obviously down to a missing environment variable or link. The X11
directories all seem to be in the usual places. I've checked as much as I
can through the archives and googled around, but to no avail. Any help
appreciated.

 

Thanks for taking the time to read this.

 

Regards

 

M


[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] vectorized lines

2004-08-08 Thread Mikkel Grum
Hi,

I thought that the following code would give me a set
of parallel lines on a plot as in the second example.

q-c(-2253,-2119,-1985,-1850)
p-c(1,2,3,4)
a-rep(min(p),4)
b-rep(max(p),4)
plot(p,q)

# example 1
lines(c(a,b),c(q,q))

Now this gives me the lines I really want:

# example 2
lines(c(a[1],b[1]),c(q[1],q[1]))
lines(c(a[2],b[2]),c(q[2],q[2]))
lines(c(a[3],b[3]),c(q[3],q[3]))
lines(c(a[4],b[4]),c(q[4],q[4]))

I assumed that example 1 was a shorter (vectorized)
way of writing example 2?? What have I got wrong?

cheers,
Mikkel

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] vectorized lines

2004-08-08 Thread Uwe Ligges
Mikkel Grum wrote:
Hi,
I thought that the following code would give me a set
of parallel lines on a plot as in the second example.
q-c(-2253,-2119,-1985,-1850)
p-c(1,2,3,4)
a-rep(min(p),4)
b-rep(max(p),4)
plot(p,q)
# example 1
lines(c(a,b),c(q,q))
Now this gives me the lines I really want:
# example 2
lines(c(a[1],b[1]),c(q[1],q[1]))
lines(c(a[2],b[2]),c(q[2],q[2]))
lines(c(a[3],b[3]),c(q[3],q[3]))
lines(c(a[4],b[4]),c(q[4],q[4]))
I assumed that example 1 was a shorter (vectorized)
way of writing example 2?? What have I got wrong?
See ?segments
Uwe Ligges

cheers,
Mikkel
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R packages install problems linux - X not found (WhiteBox EL 3)

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 12:32, Douglas Bates wrote:
 Dr Mike Waters wrote:
 
  I am used to using R under Windows, but have done an install of 1.9.1 under
  WhiteBox linux 3 (based on RHEL 3). This all went without a hitch, along
  with most of the additional package installs. However, while trying to
  install car and rgl I hit a problem regarding the X environment not being
  found. As I was doing the install from a console *within* the X environment,
  this is obviously down to a missing environment variable or link. The X11
  directories all seem to be in the usual places. I've checked as much as I
  can through the archives and googled around, but to no avail. Any help
  appreciated.
 
 Or a missing development package.  In many Linux distributions the 
 include files for X11 are in a separate package from the run-time 
 libraries.  I have never used WhiteBox Linux but I imagine that will be 
 the case for that distribution too.  Check to see if there is a package 
 with a name like xlibs-dev or x-dev.


Just to amplify on Doug's comments, the RPM in question should be
something like:

XFree86-devel-...

where the ... is replaced the by version numbering schema.

I am presuming that WhiteBox has not yet changed over to the use of
X.org in place of XFree86 at this point. If it has, then the RPM would
be something like:

xorg-x11-devel-...

An easy way to check for this would be to open a console window and use:

rpm -q XFree86-devel

in the first case or:

rpm -q xorg-x11-devel

in the second case.

If nothing is returned by the command, then it would confirm that you
are missing the requisite RPM.

In the case of the RGL package, you might want to review this recent
thread:

https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/thread.html

which indicates some issues related to the same devel libraries,
including the XFree86-Mesa-libGL (or xorg-x11-Mesa-libGL) and
XFree86-Mesa-libGLU (or xorg-x11-Mesa-libGLU) RPMS.

HTH,

Marc Schwartz

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R packages install problems linux - X not found (WhiteBox EL 3)

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 12:53, Marc Schwartz wrote:
 In the case of the RGL package, you might want to review this recent
 thread:
 
 https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/thread.html


Correction on the above URL. I pasted the wrong one here. It should be:

https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/053994.html

Marc

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] vectorized lines

2004-08-08 Thread Jim Brennan
abline(h=q) might be useful

Jim
- Original Message -
From: Mikkel Grum [EMAIL PROTECTED]
To: RHelp [EMAIL PROTECTED]
Sent: Sunday, August 08, 2004 1:26 PM
Subject: [R] vectorized lines


 Hi,

 I thought that the following code would give me a set
 of parallel lines on a plot as in the second example.

 q-c(-2253,-2119,-1985,-1850)
 p-c(1,2,3,4)
 a-rep(min(p),4)
 b-rep(max(p),4)
 plot(p,q)

 # example 1
 lines(c(a,b),c(q,q))

 Now this gives me the lines I really want:

 # example 2
 lines(c(a[1],b[1]),c(q[1],q[1]))
 lines(c(a[2],b[2]),c(q[2],q[2]))
 lines(c(a[3],b[3]),c(q[3],q[3]))
 lines(c(a[4],b[4]),c(q[4],q[4]))

 I assumed that example 1 was a shorter (vectorized)
 way of writing example 2?? What have I got wrong?

 cheers,
 Mikkel

 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] manipulating strings

2004-08-08 Thread Stephen Nyangoma
Hi
I have a called fil consisting of the following strings.


 fil
  [1]  102.2 639104.2 224105.1 1159   107.1 1148  
   108.1 1376
  [6]  109.2 1092   111.2 1238   112.2 349113.1 1204  
   114.1 537
 [11]  115.0 303116.1 490117.2 202118.1 1864  
   119.0 357


I want to get a data frame like

TimeObs
102.2   639
104.2   224
105.1  1159
107.1  1148
108.1  1376
109.2  1092
111.2  1238
112.2   349
113.1  1204  
114.1   537
etc

Can anyone see an efficient way of doing this?

Thanks. Stephen

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


FW: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-08 Thread Dr Mike Waters


-Original Message-
From: Dr Mike Waters [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2004 20:11
To: '[EMAIL PROTECTED]'
Subject: RE: [R] R packages install problems linux - X not found (WhiteBoxEL
3)

-Original Message-
 Correction on the above URL. I pasted the wrong one here. It should be:

 https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/053994.html

 Marc



Thanks for the responses guys.

I used to have RH9 installed on this machine and I found out about the
separate developer packages then. I thought that I had got the relevant
XFree devel package installed, but although it showed up in the rpm database
as being present, the required files were not present. I did a forced rpm
upgrade from the WhiteBox updates directory and that problem is now fixed,
at least for car. Marc, thanks for the pointer on the rgl problem. However,
I have a slightly different problem with the install of this package. It
gets through to the point where it tries to make the rgl.so from the various
.o files and fails then, as follows:



g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H
-I/usr/include -I/usr/local/include  -Wall -pedantic -fno-exceptions
-fno-rtti -fPIC  -O2 -g -march=i386 -mcpu=i686 -c glgui.cpp -o glgui.o

g++  -L/usr/local/lib -o rgl.so x11lib.o x11gui.o types.o math.o fps.o
pixmap.o gui.o api.o device.o devicemanager.o rglview.o scene.o glgui.o
-L/usr/X11R6/lib -L/usr/lib -lstdc++ -lX11 -lXext -lGL -lGLU -lpng
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
x11lib.o(.text+0x84): In function `set_R_handler':
/tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined reference to
`R_InputHandlers'
x11lib.o(.text+0x92):/tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined
reference to `addInputHandler'
x11lib.o(.text+0xfb): In function `unset_R_handler':
/tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52: undefined reference to
`R_InputHandlers'
x11lib.o(.text+0x103):/tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52:
undefined reference to `removeInputHandler'
collect2: ld returned 1 exit status
make: *** [rgl.so] Error 1
ERROR: compilation failed for package 'rgl'
** Removing '/usr/lib/R/library/rgl'

-

No doubt another failed dependency... DOH!

Regards

M

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] manipulating strings

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 13:58, Stephen Nyangoma wrote:
 Hi
 I have a called fil consisting of the following strings.
 
 
  fil
   [1]  102.2 639104.2 224105.1 1159   107.1 1148  
108.1 1376
   [6]  109.2 1092   111.2 1238   112.2 349113.1 1204  
114.1 537
  [11]  115.0 303116.1 490117.2 202118.1 1864  
119.0 357
 
 
 I want to get a data frame like
 
 TimeObs
 102.2   639
 104.2   224
 105.1  1159
 107.1  1148
 108.1  1376
 109.2  1092
 111.2  1238
 112.2   349
 113.1  1204  
 114.1   537
 etc
 
 Can anyone see an efficient way of doing this?
 
 Thanks. Stephen

Try this:

# Create strings
MyStrings - c( 102.2 639,   104.2 224,  105.1 1159,
107.1 1148,  108.1 1376,  109.2 1092,
111.2 1238,  112.2 349,   113.1 1204,
114.1 537,   115.0 303,   116.1 490,
117.2 202,   118.1 1864,  119.0 357)

 MyStrings
 [1]  102.2 639   104.2 224   105.1 1159  107.1 1148
 [5]  108.1 1376  109.2 1092  111.2 1238  112.2 349 
 [9]  113.1 1204  114.1 537   115.0 303   116.1 490 
[13]  117.2 202   118.1 1864  119.0 357 


# Now convert to a data frame, by first using strsplit(), to break up
# each of the vector elements into three components, using   as a
# split character. This returns a list, which we then convert to vector,
# using unlist(). Then use matrix() to convert the vector into a two
# dimensional object with 3 cols. Use 'byrow = TRUE' so that we fill
# the matrix row by row. Then take only the second and third columns 
# from the matrix and convert them into a data frame.
df - as.data.frame(matrix(unlist(strsplit(MyStrings, split =  )),
ncol = 3, byrow = TRUE)[, 2:3])

# Finally, set the colnames
colnames(df) - c(Time, Obs)

 df
Time  Obs
1  102.2  639
2  104.2  224
3  105.1 1159
4  107.1 1148
5  108.1 1376
6  109.2 1092
7  111.2 1238
8  112.2  349
9  113.1 1204
10 114.1  537
11 115.0  303
12 116.1  490
13 117.2  202
14 118.1 1864
15 119.0  357


Note that the above presumes that your strings (character vectors) have
a leading   in them and the Time and Obs elements are also separated
by a   in each.

See ?strsplit for more information.

HTH,

Marc Schwartz

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 14:10, Dr Mike Waters wrote:

snip

 Thanks for the responses guys.
 
 I used to have RH9 installed on this machine and I found out about the
 separate developer packages then. I thought that I had got the relevant
 XFree devel package installed, but although it showed up in the rpm database
 as being present, the required files were not present. I did a forced rpm
 upgrade from the WhiteBox updates directory and that problem is now fixed,
 at least for car. Marc, thanks for the pointer on the rgl problem. However,
 I have a slightly different problem with the install of this package. It
 gets through to the point where it tries to make the rgl.so from the various
 .o files and fails then, as follows:
 
 
 
 g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H
 -I/usr/include -I/usr/local/include  -Wall -pedantic -fno-exceptions
 -fno-rtti -fPIC  -O2 -g -march=i386 -mcpu=i686 -c glgui.cpp -o glgui.o
 
 g++  -L/usr/local/lib -o rgl.so x11lib.o x11gui.o types.o math.o fps.o
 pixmap.o gui.o api.o device.o devicemanager.o rglview.o scene.o glgui.o
 -L/usr/X11R6/lib -L/usr/lib -lstdc++ -lX11 -lXext -lGL -lGLU -lpng
 /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In
 function `_start':
 : undefined reference to `main'
 x11lib.o(.text+0x84): In function `set_R_handler':
 /tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined reference to
 `R_InputHandlers'
 x11lib.o(.text+0x92):/tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined
 reference to `addInputHandler'
 x11lib.o(.text+0xfb): In function `unset_R_handler':
 /tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52: undefined reference to
 `R_InputHandlers'
 x11lib.o(.text+0x103):/tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52:
 undefined reference to `removeInputHandler'
 collect2: ld returned 1 exit status
 make: *** [rgl.so] Error 1
 ERROR: compilation failed for package 'rgl'
 ** Removing '/usr/lib/R/library/rgl'
 
 -
 
 No doubt another failed dependency... DOH!
 
 Regards


I am concerned by your indications of previously having had RH9 on the
same box and that you had to force an update of the XFree Devel RPM.
Forcing the installation of an RPM is almost always a bad thing.

When you installed WB on the system, did you do a clean installation
or some type of upgrade?

If the latter, it is reasonable to consider that there may be some level
of mixing and matching of RPMS from the two distributions going on. This
could result in a level of marginally or wholly incompatible versions of
RPMS being installed.

Could you clarify that point?

Also, be sure that you have the same versions of the XFree series RPMS
installed.

Use:

rpm -qa | grep XFree

in a console and be sure that the RPMS return the same version schema.
If not, it is possible that one of your problems is the mixing of
versions.

Take note of the output of the above and be sure that the
XFree86-Mesa-libGL and XFree86-Mesa-libGLU RPMS are installed as well.

Some of the messages above would also suggest a problem finding R
related headers. How did you install R? This may be a red herring of
sorts, given the other problems, but may be helpful.

Marc

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] manipulating strings

2004-08-08 Thread Gabor Grothendieck
Stephen Nyangoma S.Nyangoma at cs.rug.nl writes:

: 
: Hi
: I have a called fil consisting of the following strings.
: 
:  fil
:   [1]  102.2 639104.2 224105.1 1159   107.1 1148  
:108.1 1376
:   [6]  109.2 1092   111.2 1238   112.2 349113.1 1204  
:114.1 537
:  [11]  115.0 303116.1 490117.2 202118.1 1864  
:119.0 357
: 
: I want to get a data frame like
: 
: TimeObs
: 102.2   639
: 104.2   224
: 105.1  1159
: 107.1  1148
: 108.1  1376
: 109.2  1092
: 111.2  1238
: 112.2   349
: 113.1  1204  
: 114.1   537
: etc
: 
: Can anyone see an efficient way of doing this?

textConnection can be used to allow read.table to read them
as if it were reading from a file:

   read.table(textConnection(fil), col.names = c(Time, Obs))

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-08 Thread Prof Brian Ripley
On Sun, 8 Aug 2004, Marc Schwartz wrote:

 On Sun, 2004-08-08 at 14:10, Dr Mike Waters wrote:
 
 snip
 
  Thanks for the responses guys.
  
  I used to have RH9 installed on this machine and I found out about the
  separate developer packages then. I thought that I had got the relevant
  XFree devel package installed, but although it showed up in the rpm database
  as being present, the required files were not present. I did a forced rpm
  upgrade from the WhiteBox updates directory and that problem is now fixed,
  at least for car. Marc, thanks for the pointer on the rgl problem. However,
  I have a slightly different problem with the install of this package. It
  gets through to the point where it tries to make the rgl.so from the various
  .o files and fails then, as follows:
  
  
  
  g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H
  -I/usr/include -I/usr/local/include  -Wall -pedantic -fno-exceptions
  -fno-rtti -fPIC  -O2 -g -march=i386 -mcpu=i686 -c glgui.cpp -o glgui.o
  
  g++  -L/usr/local/lib -o rgl.so x11lib.o x11gui.o types.o math.o fps.o
  pixmap.o gui.o api.o device.o devicemanager.o rglview.o scene.o glgui.o
  -L/usr/X11R6/lib -L/usr/lib -lstdc++ -lX11 -lXext -lGL -lGLU -lpng
  /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In
  function `_start':
  : undefined reference to `main'
  x11lib.o(.text+0x84): In function `set_R_handler':
  /tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined reference to
  `R_InputHandlers'
  x11lib.o(.text+0x92):/tmp/R.INSTALL.13414/rgl/src/x11gui.h:33: undefined
  reference to `addInputHandler'
  x11lib.o(.text+0xfb): In function `unset_R_handler':
  /tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52: undefined reference to
  `R_InputHandlers'
  x11lib.o(.text+0x103):/tmp/R.INSTALL.13414/rgl/src/x11lib.cpp:52:
  undefined reference to `removeInputHandler'
  collect2: ld returned 1 exit status
  make: *** [rgl.so] Error 1
  ERROR: compilation failed for package 'rgl'
  ** Removing '/usr/lib/R/library/rgl'
  
  -
  
  No doubt another failed dependency... DOH!
  
  Regards
 
 
 I am concerned by your indications of previously having had RH9 on the
 same box and that you had to force an update of the XFree Devel RPM.
 Forcing the installation of an RPM is almost always a bad thing.
 
 When you installed WB on the system, did you do a clean installation
 or some type of upgrade?
 
 If the latter, it is reasonable to consider that there may be some level
 of mixing and matching of RPMS from the two distributions going on. This
 could result in a level of marginally or wholly incompatible versions of
 RPMS being installed.
 
 Could you clarify that point?
 
 Also, be sure that you have the same versions of the XFree series RPMS
 installed.
 
 Use:
 
 rpm -qa | grep XFree
 
 in a console and be sure that the RPMS return the same version schema.
 If not, it is possible that one of your problems is the mixing of
 versions.
 
 Take note of the output of the above and be sure that the
 XFree86-Mesa-libGL and XFree86-Mesa-libGLU RPMS are installed as well.
 
 Some of the messages above would also suggest a problem finding R
 related headers. How did you install R? This may be a red herring of
 sorts, given the other problems, but may be helpful.

I think it is the exact point.  Those entry points are in R.bin, 
so should be missing.  The g++ line is missing `-shared', which is picked 
up from R_HOME/etc/Makeconf, specifically from

SHLIB_CXXLDFLAGS = -shared

So the R installation doesn't have the right flags.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] (REPOST) Simple main effects in 2-way repeated measure ANOVA

2004-08-08 Thread Giuseppe Pagnoni
Hi all
I am running a 2-way repeated measure anova with 1 between-subjects 
factor (Group=treatment, control), and 1 within-subject factor (Time of 
measurement: time1, time2).  I extract the results of the anova with:

summary(aov(effect ~ Group*Time + Error=Subj/Time, data=mydata))
Now, this must be clearly a dumb question, but how can I quickly 
extract in R all the post-hoc t-tests for the simple main effects?

Also, while I am at it, how do I enter in the model a counfounding 
covariate (e.g., Age)?

And on a different matter, is there a way to receive interactive user 
input in an R script? Something like Enter the name of  the factor:  
, or even more simply Press Enter to see the result of the next 
analysis

thanks in advance for any suggestions!
   giuseppe

Giuseppe Pagnoni
Dept. Psychiatry and Behavioral Sciences
Emory University
1639 Pierce Drive, Suite 4000
Atlanta, GA, 30322
tel: 404.712.8431
fax: 404.727.3233
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] (REPOST) Simple main effects in 2-way repeated measure ANOVA

2004-08-08 Thread Prof Brian Ripley
Why has this been REPOSTed?  It was delivered last Thursday.

On Sun, 8 Aug 2004, Giuseppe Pagnoni wrote:

 I am running a 2-way repeated measure anova with 1 between-subjects 
 factor (Group=treatment, control), and 1 within-subject factor (Time of 
 measurement: time1, time2).  I extract the results of the anova with:
 
 summary(aov(effect ~ Group*Time + Error=Subj/Time, data=mydata))

That's not valid syntax for an R formula. Did you mean Error(Subj/Time)?

 Now, this must be clearly a dumb question, but how can I quickly 
 extract in R all the post-hoc t-tests for the simple main effects?

I very much hope you cannot, as you have specified an interaction, and
you should not want t-tests for main effects in the presence of an 
interaction, and certainly not with the default R coding.

Did you mean Group + Time?

 Also, while I am at it, how do I enter in the model a counfounding 
 covariate (e.g., Age)?
 
 And on a different matter, is there a way to receive interactive user 
 input in an R script? Something like Enter the name of  the factor:  
 , or even more simply Press Enter to see the result of the next 
 analysis

?readline, or cat + scan or ... using connections.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Time zones

2004-08-08 Thread David Scott
I am analysing some data collected over a number of months from Allentown, 
PA, which is just north of Philadelphia. I am using as.POSIXct for dates 
and times, and I need to get the timezone specification correct.

Going on the documentation for DateTimeClasses, I believe one way to 
specify the correct time zone is

tz=EST5EDT
I would be grateful for any advice on this. I ask because I haven't been 
able to find a list of all the possible time zones or formats that can be 
used. I have done a bit of googling without to much success.

I have read Gabor's article in the recent R Newsletter too.
David Scott
_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
AucklandNEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]
Graduate Officer, Department of Statistics
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] returns the value of a polynomial of degree n evaluated at x.

2004-08-08 Thread McClatchie, Sam (PIRSA-SARDI)
 Background:
 OS: Linux Mandrake 9.1
 release: R 1.9.0 
 editor: Xemacs 21.4
 frontend: ESS 5.1.23
 -
 
 Colleagues
 
Is there a function in R that is similar to polyval in matlab? (y =
polyval(p,x) returns the value of a polynomial of degree n evaluated at x.
The input argument p is a vector of length n+1 whose elements are the
coefficients in descending powers of the polynomial to be evaluated).
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/polyval.html 
 
I have possibly missed it in the R help files, so please excuse me if I
have. Polynomial evaluation yielded no result in a search of help, and the
functions poly() and locpoly() don't seem to be what I am after.

 Sam
 
 Sam McClatchie,
 Sub-program leader, Pelagic Fisheries
 South Australian Aquatic Sciences Centre
 PO Box 120, Henley Beach 5022
 Adelaide, South Australia
 email [EMAIL PROTECTED]
 Telephone: (61-8) 8200 2448
 FAX: (61-8) 8200 2481
 Research home page http://www.smcc.150m.com/
   
/\
   ...xX(° 
  
°)Xx
   /  \\
 (((° 
   (((°   ...xX(°O°)Xx


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] returns the value of a polynomial of degree n evaluated a t x.

2004-08-08 Thread Liaw, Andy
Try something like:

install.packages(polynom)
library(polynom)
predict(polynomial(rev(p)), x)

HTH,
Andy

 From: McClatchie, Sam (PIRSA-SARDI)
 
  Background:
  OS: Linux Mandrake 9.1
  release: R 1.9.0 
  editor: Xemacs 21.4
  frontend: ESS 5.1.23
  -
  
  Colleagues
  
 Is there a function in R that is similar to polyval in matlab? (y =
 polyval(p,x) returns the value of a polynomial of degree n 
 evaluated at x.
 The input argument p is a vector of length n+1 whose elements are the
 coefficients in descending powers of the polynomial to be evaluated).
 http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pol
yval.html 
 
I have possibly missed it in the R help files, so please excuse me if I
have. Polynomial evaluation yielded no result in a search of help, and the
functions poly() and locpoly() don't seem to be what I am after.

 Sam
 
 Sam McClatchie,
 Sub-program leader, Pelagic Fisheries
 South Australian Aquatic Sciences Centre
 PO Box 120, Henley Beach 5022
 Adelaide, South Australia
 email [EMAIL PROTECTED]
 Telephone: (61-8) 8200 2448
 FAX: (61-8) 8200 2481
 Research home page http://www.smcc.150m.com/
   
/\
   ...xX(° 
  
°)Xx
   /  \\
 (((° 
   (((°   ...xX(°O°)Xx


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html