全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1093 2
2024-07-23
求助各位朋友们,我用stata做潜在类别分析时,以确定要分为4类,然后进行参数估计,输入 lclogitml,iter(10)时,stata报错:choice is not a 0/1 variable which equals 1 for the chosen alternative.请问是什么原因呢?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2024-7-23 09:07:14
编类转化
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2024-7-31 06:24:06
确定要分为4类, 数据类型是ordinal data. Logit model 是用于binary variable, 就是0 或者1 的数据变量.
When the dependent variable (DV) is ordinal data, ordinal logistic regression is a method for modeling the relationship between the DV and multiple independent variables. Ordinal logistic regression is also known as ordinal regression or ordered logit models.

Ordinal logit model of y on x1 and categorical variables a and b can be written in STATA such as:

ologit y x1 i.a i.b
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群