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

Treating categories not as numerical variables #4

Open
jvsoest opened this issue Aug 5, 2021 · 0 comments
Open

Treating categories not as numerical variables #4

jvsoest opened this issue Aug 5, 2021 · 0 comments

Comments

@jvsoest
Copy link

jvsoest commented Aug 5, 2021

Currently the coxph algorithm only accepts numerical variables.
Please include support for categorical variables as well (as e.g. a tumor stage distance between T0 and T1 is possibly different from T2 to T3).

This could be solved by detecting if factor columns are in the input variables, and make boolean columns (containing a numerical 0 or 1) for every factor. The first factor in the list can then function as the baseline (0 for all boolean columns).

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

1 participant