Selecting the statistically significant variables in an R glm model

前端 未结 4 1059
别跟我提以往
别跟我提以往 2020-12-23 22:52

I have an outcome variable, say Y and a list of 100 dimensions that could affect Y (say X1...X100).

After running my glm and viewing a summary of my mod

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 23:47

    in

    sig.formula <- as.formula(paste("y ~",relevant.x))

    you paste only the first variable of relevant.x the others are ignored (try for example to invert the condition to >0.5)

提交回复
热议问题