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

Standardisation issue #60

Open
dannychu1108 opened this issue May 31, 2024 · 1 comment
Open

Standardisation issue #60

dannychu1108 opened this issue May 31, 2024 · 1 comment

Comments

@dannychu1108
Copy link

Hi,

A lot of variables in X were in binary and it may not be the best idea to standardize them. May I know if there is any modification that you can make to make sure my data was not standardized?

Also, I was trying to type in one lambda value to fit my Cox regression, but what I had was

Error in matrix(0, nrow = length(XG$scale), ncol = ncol(b)) : 
  non-numeric matrix extent

But the matrix worked fine when I didn't state the lambda value.

@pbreheny
Copy link
Owner

pbreheny commented Jun 3, 2024

  • Standardization: I would argue that one should always standardize, no exceptions. Whether the variables are binary or not makes no difference. If you want to change the amount of penalization, you can always modify the penalty.factor option.
  • Error: Supply a reproducible example.

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

No branches or pull requests

2 participants