Re: [R] Best way to compute the difference between two levels of a factor ?

2012-03-21 Thread wphantomfr
: On 2012-03-21 03:37, wphantomfr wrote: Thanks peter for your fast answer. your is really nice but if I have say 20 variables I have to write 20 statements like "DIF.X = X[TIME=="T2"] - X[TIME=="T1"]". Does someone has a trick to avoid this ? It may not be eas

Re: [R] Best way to compute the difference between two levels of a factor ?

2012-03-21 Thread wphantomfr
Le 21/03/12 11:03, Peter Ehlers a écrit : On 2012-03-21 01:48, wphantomfr wrote: Dear R-help Members, I am wondering if anyone think of the optimal way of computing for several numeric variable the difference between 2 levels of a factor. To be clear let's generate a simple data frame

[R] Best way to compute the difference between two levels of a factor ?

2012-03-21 Thread wphantomfr
Dear R-help Members, I am wondering if anyone think of the optimal way of computing for several numeric variable the difference between 2 levels of a factor. To be clear let's generate a simple data frame with 2 numeric variables collected for different subjects (ID) and 2 levels of a TIME

[R] Need advises on mixed-effect model ( a concrete example)

2011-02-03 Thread wphantomfr
Dear R-help members, I'm trying to run LME model on some behavioral data and need confirmations about what I'm doing... Here's the story... I have some behavioral reaction time (RT) data (participants have to detect dome kind of auditory stimuli). the dependant variable is RT measured in mi

Re: [R] Problem setting the number of digits in xtable

2010-11-24 Thread wphantomfr
ov. 2010 à 22:20, Brian Diggs a écrit : > On 11/22/2010 9:16 AM, wphantomfr wrote: >> DEar list members, >> >> I am currently using Sweave with LaTeX which is great. >> >> I can use xtable for formatting outp of tables but I have a problem >> setting

[R] Problem setting the number of digits in xtable

2010-11-22 Thread wphantomfr
DEar list members, I am currently using Sweave with LaTeX which is great. I can use xtable for formatting outp of tables but I have a problem setting the number of decimals in xtables when used with dataframe. I have found an example on the net ith matrix and it works. For example this works :