用R中的名义和有序预测变量拟合逻辑模型

时间:2019-08-26 10:33:53

标签: r

我正在尝试在R中拟合logistic回归,其中我的回答是 学生是否处于试用期,我的六个独立变量是:

x1 = gender(male,female) which is nominal.
x2 = Hour spend in family activity (0 hour, <5 hour, 5-9 hour, 10-14 hour, 
>14 hour)
x3 = number of times under probation
x4 = types of school(public, private, other)
x5 = level of attendance in class( 70%, 70-79%, 80-89%, 90-99%, 100%)
x6 = hours of library work (0 hour, <5 hour, 5-9 hour, 10-14 hour, >14 hour)

我的问题是我混合了标称和序数,有人可以帮助如何在R中拟合此模型吗?

0 个答案:

没有答案