I have a binary predictor with many response variables. The binary predictor was originally continuous but was converted to binary ... if the response was $>1000$ then 1, else 0. I would like to have a model in which responses of greater magnitude are more likely be to 1 vs responses of lesser magnitude. I have also thought of splitting the response to more categories ... anyone have any ideas?
-
1$\begingroup$ Why not, instead of binarizing your response, build a model to predict your continuous response variable and then binarize the prediction itself? $\endgroup$– Matthew DruryCommented May 25, 2015 at 15:46
-
$\begingroup$ thank you for your suggestion Matthew. my problem is that this is a big data set (65 000 records, 100 predictor variables) and there are a lot of legitimate 0 values. Do you think I should try Principal Component Regression? $\endgroup$– stats_noobCommented May 26, 2015 at 15:22
2 Answers
Whatever the problem is, you should not be binning a continuous response. You didn't give us much context, so advice is difficult to give, please add more context. But you say "there are a lot of legitimate 0 values." Why is that a problem? Maybe because you wanted to log-transform an otherwise positive variable? Then there are many other options, for instance modeling $\log( Y+c)$ for some positive constant $c$ (which could be estimated from that in a way similar to Box-Cox transforms). Or an extended Box-Cox transform of the form $\frac{(Y+c)^\lambda+1}{\lambda}$ Can be used, see Wikipedia or Transforming variables for multiple regression in R. Or you could simply use a glm (generalized linear model) with log link. That log-transforms the (estimated) expectation, not the observations! Many other possibilities, but tell us more about context first.
One other possibility that merits mention (since it is not too well known) is continuous ordinal regression. This is implemented in R in orm
in package rms
, and discussed at length in Frank Harrell's book "Regression Modeling Strategies".
I agree with @kjetil that binning is a bad idea.
If the reason for binning is "legitimate 0 values" then you can consider methods for zero inflation. These are better known when the dependent variable is a count, but they exist for continuous DV as well. See this thread also see Modeling nonnegative data with clumping at zero by Min and Agresti for a fairly comprehensive review (the article is a bit old, but I don't think there have been a lot of new developments here).
Another idea is to use quantile regression.