I made a regression mode:

LogitModel<- glm(y~TimeBetweenStartRegAndEndReg+Age_wn+Train_Data[,1]+Train_Data[,2]+Train_Data[,3]+Train_Data[,4]

all the variables are factor except TimeBetweenStartRegAndEndReg and Age_wn.

the output summary(LogitModel) is not understood for me. there are NA for some variables. what it means that the coefficiant is NA?

And the most important how to remove them NA from the summary?

And another thing how can i print a model just with the significant coefficiant ?

  • 1
    $\begingroup$ Sorry for this off-center comment, but I would be surprised if the language you are using (which is what language?) didn't have a simpler syntax for summing an array of numbers. $\endgroup$ – rschwieb Dec 29 '14 at 11:25
  • $\begingroup$ @rschwieb what? i don't understand you. The script is written in R. $\endgroup$ – Dima Ha Dec 29 '14 at 11:27
  • $\begingroup$ Thanks for the added info. Doesn't sum(TrainData[,:]) compute that long sum you typed out? I can't test it and my R is a little rusty. $\endgroup$ – rschwieb Dec 29 '14 at 11:33
  • $\begingroup$ Additional threads concerned with the appearance of NA in regression summaries can be found by searching our site. @rschwieb You are right to suggest there must be a simpler expression, but sum won't do it: the expression in the model is a formula, not an arithmetic summation. y ~ TimeBetweenStartRegAndEndReg + Age_wn + Train_Data[, 1:26] should work fine. $\endgroup$ – whuber Dec 29 '14 at 14:28