search for: wk2freq

Displaying 2 results from an estimated 2 matches for "wk2freq".

Did you mean: wk1freq
2005 Nov 20
1
use of the 'by' command & converting SPSS ANOVA/GLM syntax into R syntax
I have two questions I would appreciate assistance with: (1) I believe "by" is the command used to split a file. In the following example, "mydat" is the dataframe , "group" the variable I want to split the analysis by & "WK1FREQ,WK2FREQ" the variables attach(mydat) by (GROUP) cor.test (WK1FREQ,WK2FREQ) I have also tried: (by (GROUP) cor.test (WK1FREQ,WK2FREQ)) (2) I also wanted to run the following analyses, written in SPSS syntax. I have searched the R archives and gather I may need to use lm instead of glm, but got lo...
2005 Nov 27
0
obtaining p values & CI for a non-parametric correlation matrix
Hello, I tried to obtain a nonparametric correlation matrix with the following syntax: by(mydat, mydat$GROUP, function(subset) { matrix <- cbind(subset$WK1FREQ, subset$WK2FREQ, subset$WK3FREQ, subset$WK4FREQ, subset$BESTDAY) cor(matrix, method="kendall",use="pairwise.complete.obs") }) Error: syntax error In addition to the matrix, I was hoping to obtain p-value and CI (rounded to 3 decimal points). Any suggestions are much appreciated, Bob Green