search for: subject2

Displaying 10 results from an estimated 10 matches for "subject2".

Did you mean: subject
2011 Sep 23
1
Newbie question: Converting Table
...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 patterns in the previous table (o...
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 deleted]]
2011 Dec 03
1
Reading multiple text files and then combining into a dataframe
...4,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) subject1 <- cbind(sub1,trial,size,shortest,startlab,endlab,startconf,endconf,steps,time) write.table(subject1, "C:Folder/R/subject2.txt", sep=" ") setwd("C:Folder/R/") #Getting list of file names file_name <- list.files(pattern="subject*") mydata <- lapply (file_name, read.table, sep=" ", header=T, row.names=NULL) Thank you, James [[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 On Sat, Oct 30, 2010 at 2:39 PM, Ala...
2011 May 21
0
Problem with ANOVA repeated measures: "Error() model is singular"
...unction 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 gravel EXP1 M 56.1110 subject8...
2018 Jan 05
0
Calculating the correlations of nested random effects in lme4
...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 Nov 01
2
transforming a dataset for association analysis RESHAPE2
...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://d...
2011 Dec 07
1
MIXED MODEL WITH REPEATED MEASURES
...AF A 0.004 880 2.1 2003 AF A 0.005 870 2.1 2004 AF A 0.006 870 2.1 2005 AF A 0.006 900 2.1 Subject2 2001 NA S 0.000 350 18.0 2002 NA S 0.000 350 18.0 2003 NA S 0.136 380 18.0 2005 NA S 0.146 390 18.0 2006 NA S 0.1...
2012 Dec 05
1
nlme starting values are not the correct length
...mixed-effects model fit by maximum likelihood Model: Photo ~ Photo.resp(PARi, A, B, C) Data: lightresponse Log-likelihood: -494.5926 Fixed: A + B + C ~ 1 A B C 24.89334793 1.77983637 0.06499634 Random effects: Formula: list(A ~ 1, B ~ 1, C ~ 1) Level: Subject2 Structure: General positive-definite, Log-Cholesky parametrization StdDev Corr A 10.67382785 A B B 0.52572012 1.000 C 0.01433605 0.371 0.384 Residual 0.71900020 Number of Observations: 323 Number of Groups: 31 ##Now, I want...
2003 Jan 29
3
Analyzing an unbalanced AB/BA cross-over design
I am looking for help to analyze an unbalanced AB/BA cross-over design by requesting the type III SS ! # Example 3.1 from S. Senn (1993). Cross-over Trials in Clinical Research outcome<-c(310,310,370,410,250,380,330,270,260,300,390,210,350,365,370,310,380,290,260,90,385,400,410,320,340,220) subject<-as.factor(c(1,4,6,7,10,11,14,1,4,6,7,10,11,14,2,3,5,9,12,13,2,3,5,9,12,13))