[R] Sum weights of independent variables across models (AIC)
f.harrell at vanderbilt.edu
Thu Jul 14 22:03:06 CEST 2011
Why go to so much trouble? Why not fit a single full model and use it? Even
better why not use a quadratic penalty on the full model to get optimum
> I'd like to sum the weights of each independent variable across linear
> models that have been evaluated using AIC.
> For example:
>> lm1 <- lm(y ~ ., data = Cement)
>> dd <- dredge(lm1, beta = TRUE, eval = TRUE, rank = "AICc")
>> get.models(dd, subset = delta <4)
> There are 5 models with a Delta AIC Score of less than 4. I would
> like to sum the weights for each of the independent variables across
> the five models.
> How can I do that?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Department of Biostatistics, Vanderbilt University
View this message in context: http://r.789695.n4.nabble.com/Sum-weights-of-independent-variables-across-models-AIC-tp3666306p3668513.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help