Displaying 2 results from an estimated 2 matches for "factorlist".
Did you mean:
factor_list
2005 Apr 26
0
Construction of a "mean" contengency table
...work ... I think it is a problem
about correctly receiving and passing arguments in the different
function calls.
Do you think there would be a smarter way of doing this ? Or can you see
what is going wrong with this ?
Any advice will be welcome
Pascal Boisson
matrixation<-function(DF, var, factorlist, FUN, condition)
## DF is the original dataframe with raw results from my experiments
## var is the var that I want to print
## eg. DF$var1
## factorlist is a list of the two factor I want to mean against (but
I'm noot sure List is the best form for this argument),
## eg. list(DF$fact1, DF$f...
2010 Jun 09
1
generate list of variable names
...another list, then run for-loops to calculate various statistics on the response variables in terms of the classifier variables. I thought something like this might work (but didn't):
tmp<-dataframe
for (i in 1:length(tmp)){
if(class(tmp[[i]]=="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...