0

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.

4

1 に答える 1

0

2 つの要素のみを含む推定操作を使用している場合は、最初に実際のデータ レイアウトを確認する必要があります。データフレームの名前が何であるかを知るのに十分なコードが含まれていませんでしたattach.

 with( datafrm , table( fac1, fact2) )

snk.test私の推測では、テストしている可能性のあるものを推定しても意味のないテーブルが 1 つ以上あると思います。

于 2012-12-27T03:21:15.383 に答える