This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to extract AIC(Akaike's Inforation Criterion) in LAR(Least Angle Regression) in R Studio?

I'm already done in conducting the whole LAR Algorithm using lars() function in R Studio. But my problem is how to extract or use AIC in R Studio for choosing enough the number of variable that will explain my model. If I will use the predict.lars() function, only the Cp Criterion will appear. Anybody? Thank you in advance.

aic lar r

sorry for the error. Its Akaike's Information Criterion. Thank You

Doesn't lars() produce an RSS? AIC is just 2k + n Log(RSS/n), so you should be able to just calculate it.

Hello karlpersius.manlimos!

We believe that this post does not fit the main topic of this site.

off topic

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.