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

Is it valid to use a continuous target variable? #8

Open
bokov opened this issue Nov 1, 2022 · 0 comments
Open

Is it valid to use a continuous target variable? #8

bokov opened this issue Nov 1, 2022 · 0 comments

Comments

@bokov
Copy link

bokov commented Nov 1, 2022

Let's say I have a continuous response and I'm interested in correlations all along its range, not just the top or bottom quartile.

Instead of running a separate correlation_funnel for each bin, is there any reason I cannot add the continuous column back in between running binarize() and correlate()?

Reprex:

library(dplyr); library(correlationfunnel);

foo <- select(survival::veteran,-'time') %>% binarize() %>% 
    cbind(time=survival::veteran$time) %>% correlate(target=time);

foo$bin[1] <- 'time';

plot_correlation_funnel(foo);

The above runs with one warning and no errors, producing a plot where presumably all correlations are relative to an outcome variable that is not binned just like I want.

My question: Is it valid to use correlationfunel this way?

Thanks.

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