Displaying 6 results from an estimated 6 matches for "lunenfeld".
2010 Feb 25
3
variable substitution in for loops
...ure out how to just get the value of the variable and nothing else. I've tried space separated, comma separated, tab separated lists and all give the same error. I've tried get(), parse()... no go.
Any suggestions?
Thanks a lot
Jon
Soli Deo Gloria
Jon Erik Ween, MD, MS
Scientist, Kunin-Lunenfeld Applied Research Unit
Director, Stroke Clinic, Brain Health Clinic, Baycrest Centre
Assistant Professor, Dept. of Medicine, Div. of Neurology
University of Toronto Faculty of Medicine
Kimel Family Building, 6th Floor, Room 644
Baycrest Centre
3560 Bathurst Street
Toronto, Ontario M6A 2E1
Ca...
2008 Jan 22
1
row-wise conditional update in dataframe
...that didn't work. Doesn't help if I declare variables (vars and
ABCtaskNum) in the function declaration either, but then I haven't
quite figured out how best to do variable substitutions in R.
Thanks for any help. Cheers
Jon
Soli Deo Gloria
Jon Erik Ween, MD, MS
Scientist, Kunin-Lunenfeld Applied Research Unit
Director, Stroke Clinic, Brain Health Clinic
Baycrest Centre for Geriatric Care
Assistant Professor, Dept. of Medicine, Div. of Neurology
University of Toronto Faculty of Medicine
Posluns Building, 6th Floor, Room 644
Baycrest Centre for Geriatric Care
3560 Bathurst...
2010 Jun 09
1
generate list of variable names
..."factor") else tmp[[i]]<-NULL
}
factorlist<-names(tmp)
...
One problem is that the scope of the counter changes as I drop columns, but there seems to be other problems as well
Any suggestions would be welcome. Thanks!
Jon
Soli Deo Gloria
Jon Erik Ween, MD, MS
Scientist, Kunin-Lunenfeld Applied Research Unit
Director, Stroke Clinic, Brain Health Clinic, Baycrest Centre
Assistant Professor, Dept. of Medicine, Div. of Neurology
University of Toronto Faculty of Medicine
Kimel Family Building, 6th Floor, Room 644
Baycrest Centre
3560 Bathurst Street
Toronto, Ontario M6A 2E1
Ca...
2010 Feb 18
1
variable substitution
...pick which columns I want to analyze.
#Example script
varlist<-read.table(/path/to/varlist)
for (i in 1:length(varlist)){
res<-mean(Dataset$SOMETHINGHERE_i )
write(res) somewhere
}
Something like that. Any suggestions?
Thanks
Jon
Soli Deo Gloria
Jon Erik Ween, MD, MS
Scientist, Kunin-Lunenfeld Applied Research Unit
Director, Stroke Clinic, Brain Health Clinic, Baycrest Centre
Assistant Professor, Dept. of Medicine, Div. of Neurology
University of Toronto Faculty of Medicine
Kimel Family Building, 6th Floor, Room 644
Baycrest Centre
3560 Bathurst Street
Toronto, Ontario M6A 2E1
Ca...
2010 Dec 09
4
lapply getting names of the list
Hello All,
I have a toy dataframe like this. It has 8 columns separated by tab.
Name SampleID Al1 Al2 X Y R Th
rs191191 A1 A B 0.999 0.09 0.78 0.090
abc928291 A1 B J 0.3838 0.3839 0.028 0.888
abcnab A1 H K 0.3939 0.939 0.3939 0.77
rx82922 B1 J K 0.3838 0.393
2009 Mar 01
1
gamm (mgvc) and time-varying coefficient model
Dear R users,
I have repeated measurements on individuals. I want to estimate the
time-varying effect of a factor variable X (taking three levels), e.g. a
model in the spirit of Hastie and Tibshirani (1993).
I am considering using the package "mgvc" which implements generalized
additive models, especially the function gamm, which estimates
generalized additive mixed models, and thus,