Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

categorical variable #92

Open
cccfran opened this issue Sep 21, 2018 · 1 comment
Open

categorical variable #92

cccfran opened this issue Sep 21, 2018 · 1 comment
Assignees

Comments

@cccfran
Copy link

cccfran commented Sep 21, 2018

To incorporate categorical variable in the information criteria, for example Cp, p should be the sum of the degree of freedom of each covariates + 1.

The reason why I want to incorporate categorical variable is that I will choose the categorical variable as one variable rather than the dummy variables created for the categorical variable one by one, which is similar to https://stats.stackexchange.com/questions/152158/r-model-selection-with-categorical-variables-using-leaps-and-glmnet.

@aravindhebbali
Copy link
Member

Hi @cccfran I have thought about this before but did not implement as I did not have much clarity. Will get back after referring to literature related to variable selection methods and other R packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants