Re: [R] Loops

2013-01-27 Thread Richard D. Morey
ed): > dim( p ) = c(25,4,3) > p2 = apply(p, c(2,3), sum) > p3 = t(apply(p2, 1, function(fa) 100-(100*abs(fa/sum(fa)-(1/3))) ) ) p3 now contains all your results except the one including all the data, which is trivial to compute. -- Richard D. Morey Assistan

[R] assigning to list element within target environment

2011-03-17 Thread Richard D. Morey
# remove the unneeded variable rm("temp",envir=testEnv) But I figure there must be a more elegant way. Anyone have any ideas? Thanks, Richard -- Richard D. Morey Assistant Professor Psychometrics and Statistics Rijksuniversiteit Groningen / University of Groningen http://drsmo

[R] aov, lme, multcomp

2008-08-25 Thread Richard D. Morey
me model to the data with all approaches, so that when I look at parameter estimates I know they are meaningful. Are the multiple comparisons I'll get out of lme and lmer meaningful with fully crossed factors, given that they are both "tuned" for nested factors? Thanks in