Skip to content

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

@bokov

Description

@bokov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions