我想找出poLCA::poLCA()函数,但系统给我的警告如下:
圆误差(Mf):数学函数的非数值参数
代码如下:
#Latent class models with one (loglinear independence) to three classes
f=cbind("I_like_to_drink","I_drink_hard_liquor","I_have_drank_in_the_morning","I_have_drank_in_the_work","I_drink_to_get_drunk","I_like_the_taste_of_the_alcohol","I_drink_help_me_sleep","Drinking_interferes_with_my_relationships","I_frequently_visit_bars")~1
nes1 = poLCA(f,lca1,nclass=1) # log-likelihood:
nes2 = poLCA(f,lca1,nclass=2) # log-likelihood:
nes3 = poLCA(f,lca1,nclass=3) # log-likelihood:
nes4 = poLCA(f,lca1,nclass=4) # log-likelihood: 发布于 2020-04-30 20:51:57
这是一个旧的帖子,但我回答未来的案件(我刚刚遇到同样的问题)
它应该像定义您的公式一样简单,没有引号:
f=cbind(I_like_to_drink,I_drink_hard_liquor,I_have_drank_in_the_morning,I_have_drank_in_the_work,I_drink_to_get_drunk,I_like_the_taste_of_the_alcohol,I_drink_help_me_sleep,Drinking_interferes_with_my_relationships,I_frequently_visit_bars)~1https://stackoverflow.com/questions/33799656
复制相似问题