I model a lot of data for different companies, and for each company I need to quickly determine those parameters of the model that are most significant. What I would like to see is the xtable() output for a model that sorts all the coefficients in ascending order of p-value (i.e. the most important parameters).
x <- data.frame(a=rnorm(100), b=runif(100), c=rnorm(100), e=rnorm(100)) fit <- glm(a ~ ., data=x) xtable(fit)
I assume that I can accomplish something similar by messing up the structure of the fit object. But I am not familiar with the structure in order to be able to confidently change something.
Suggestions?
source share