Displaying 8 results from an estimated 8 matches for "subject1".
Did you mean:
subject
2011 Dec 03
1
Reading multiple text files and then combining into a dataframe
...)
size <- rep(3,10)
shortest <- rep(444,10)
startlab <- rep(444,10)
endlab <- rep(444,10)
startconf <- rep(444,10)
endconf <- rep(444,10)
steps <- sample(1:30,10)
time <- sample(1:300,10)
#creating example of text file and saving into a shared director with other
txt files
subject1 <-
cbind(sub1,trial,size,shortest,startlab,endlab,startconf,endconf,steps,time)
write.table(subject1, "C:Folder/R/subject1.txt", sep=" ")
#2nd example of same text file
sub <- rep(2,10)
trial <- seq(1,10,1)
size <- rep(3,10)
shortest <- rep(444,10)
startlab <-...
2011 Sep 23
1
Newbie question: Converting Table
Hi,
I'm new to R, and I have searched helpfiles and this forum on my 2
questions. Hope you guys can help me out! :-)
Many thanks in advance!
Cheers,
Lars
Q1: I imported a csv file with columnames subject and class. There are about
1000 different classes...
It looks like this:
subject1, class1
subject1, class2
subject2, class1
subject2, class3
...
subject999, class1
subject999, class2
Now I want to transform this in R into a table (with columnnames
subject,class1,class2,...) like:
subject1, yes, yes, no, ...
subject2, yes, no, yes, ...
...
Q2: I want to count the matching class...
2009 Dec 12
4
simple ts.plot question
*Respected Sir,
I have a simple question regarding plots of time series in R.
I have to plot "conc" against "time" **for each individual and display in
the same panel for the in-built dataset "Indometh" in R.
*
***I have six time series, say subject1.ts, subject2.ts, .............,
subject6.ts.
The observations are taken at an interval of 0.25 hr.
All of the series ranges from 0.25hr to 8.00 hr.
How can I plot all the six time series in the same panel**?*
*I am eagerly waiting for your reply. Thanks in advance.*
[[alternative HTML version d...
2018 Jan 05
0
Calculating the correlations of nested random effects in lme4
...in group 0, and then again I have values for each subject in
group 0 (intercept column) and group 1(Group1 column). The same is with
slope. What does this data show me?
What is the difference between defining random factors as
`1+RT|Group:subject` and then looking at Intercept and RT values for
0:subject1, 0:subject2...., 1:subject1, 1:subject2...
and
defining random factors as `RT*Group|subject` and looking at the various
columns (Intercept, RT, Group1, RT:Group1) for subject1, subject 2 etc.?
Thank you,
Dominik
[[alternative HTML version deleted]]
2010 Oct 30
2
transforming a dataset for association analysis
Hi
I would like to transform a data frame like
Subject Item Score
Subject 1 Item 1 1
Subject 1 Item 2 0
Subject 1 Item 3 1
Subject 2 Item 1 1
Subject 2 Item 2 1
Subject 2 Item 3 0
....
*to *
Subject Item1 Item2 Item3 .....Item N
Subject1 1 0 1
Subject2 1 1 0
........
SubjectP..
Apologize for the simple nature of my query but I am stuck. How can I do
this transformation?
Regards
Ajay
Websites-
http://decisionstats.com
http://dudeofdata.com
Linkedin- www.linkedin.com/in/ajayohri...
2011 May 21
0
Problem with ANOVA repeated measures: "Error() model is singular"
...am
performing in R is correct. Indeed using the function aov I get the following error:"In aov (......) Error() model is singular"
The structure of my table is the following: subject, stimulus, condition, sex, response
Example:
subject stimulus condition sex response
subject1 gravel EXP1 M 59.8060
subject2 gravel EXP1 M 49.9880
subject3 gravel EXP1 M 73.7420
subject4 gravel EXP1 M 45.5190
subject5 gravel EXP1 M 51.6770
subject6 gravel EXP1 M 42.1760
subject7...
2010 Nov 01
2
transforming a dataset for association analysis RESHAPE2
...> Subject Item Score
>> Subject 1 Item 1 1
>> Subject 1 Item 2 0
>> Subject 1 Item 3 1
>> Subject 2 Item 1 1
>> Subject 2 Item 2 1
>> Subject 2 Item 3 0
>> ....
>> *to *
>>
>> Subject Item1 Item2 Item3 .....Item N
>> Subject1 1 0 1
>> Subject2 1 1 0
>> ........
>> SubjectP..
>>
>> Apologize for the simple nature of my query but I am stuck. How can I do
>> this transformation?
>>
>> Regards
>>
>> Ajay
>>
>>...
2011 Dec 07
1
MIXED MODEL WITH REPEATED MEASURES
...statistics, and/or (2) I'm fairly new to R, so
the problem may be related to my ignorance of R syntax. I have tried so many
sources, my head is spinning,
Here is the basic structure of my data (in longitudinal form):
FixedVar1 FixedVar2 RandomVar1 RandomVar2 ...
DepVar
Subject1
1996 AF A 0.002 800 2.1
1997 AF A 0.002 760 2.1
1998 AF A 0.003 760 2.1
1999 AF A 0.005 760...