I'm getting an error :
"Error in if (colnames(tm.class)[j] == "fixed") tm.final[i, j] = 0 :
missing value where TRUE/FALSE needed"
all I tried to do was a simple snk.test(lm(values ~ factor1*factor2))
, and the estimates function keeps returning this error. I'm not sure what tm. class is, but I have no idea why the column names seem to be NA for whatever the estimates function is testing. I'm a beginner at R and don't really know how to debug a prewritten function.
OK EDIT: I have my data in a text file, it looks like this
variable | factor1 | factor2
x1 | f1 | f2
x2 | f12 | f22
etc. (all values are just decimals).
All i did was read.table from the file, then call snk.test(lm(variable ~ factor1*factor2, data=data))
and get the aforementioned error message.