使用函数MCMCordfactanal
时,出现以下错误消息:
Error in [.data.frame(X, , x.col.var != 0) : undefined columns selected
这是我的代码,尽管我担心数据帧中有问题。
x <-MCMCordfactanal(~var1+var2, factors = 1, data = mydata, lambda.constraints = list(), burnin = 10000, mcmc = 1000000, thin = 100, verbose = T, L0=0.25, store.lambda = T, store.scores = T, tune = 0.25)
谢谢!