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.
• 4,201 views
•
link
0 answers
No answers yet.
Log in to answer this question.
sorry for the error. Its Akaike's Information Criterion. Thank You
Doesn't
lars()produce an RSS? AIC is just2k + n Log(RSS/n), so you should be able to just calculate it.Have you tried asking in http://stats.stackexchange.com/ ?
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!