-3

I am running a linear regression model, using stepwise selection procedure and would like to get the confidence intervals in the summary table. How can i do this ? The purpose is to be able to use xtable to use the output in Latex

step.model <- stepAIC(full.model,direction = "both",trace = FALSE)  
summary(step.model)

How can this be done ?

user1607
  • 531
  • 7
  • 28

1 Answers1

1

Figured out the solution:

 # add confidence interval to table
    ci <- confint(step.model)
    sum_step.model <- (cbind(Estimate = coef(sum_step.model), ci))

#print results to latex
xtable(sum_step.model)
user1607
  • 531
  • 7
  • 28