Logit模型输出的问题

时间:2016-03-19 10:55:08

标签: r glm mlogit

我正在尝试运行一个logit模型,看看是否有链接到海龟和其他变量中发现的碎片。我尝试过使用下面的两个代码,发现我的输出列出了每个不同的变量,而不是变量类型:

model <- glm(debris ~., family=binomial(link='logit'),data=turtles)
summary(model)

mylogit <- glm(debris ~ sex + species + age, data = my data, family = “binomial”)
summary(mylogit)


----------
sexm          0.09759    0.10874   0.897  0.36945    
sexUNK       -0.24675    0.08839  -2.792  0.00525 ** 
agecalf     -11.52421  324.74385  -0.035  0.97169    
agejuv        0.36566    0.31570   1.158  0.24676    
ageUNK       -0.36980    0.31378  -1.179  0.23858    
speciesCM     1.15422    0.27601   4.182 2.89e-05 ***
speciesDC     1.13929    0.72239   1.577  0.11477    
speciesEI     1.67397    0.33718   4.965 6.88e-07 ***
speciesLO    -0.91502    0.63666  -1.437  0.15066    
speciesUNK  -10.36999  324.74383  -0.032  0.97453 

当我希望它们被限制在变量(即性别,年龄......)时,因为我有一些具有许多不同分类的类别。

我假设我在准备数据方面做错了,或者是我缺少或需要摆脱的部分代码。

0 个答案:

没有答案