Hi experts!
Can I use the STATA command lpoly on a binary outcome variable? The examples on lpoly's help file are all about continuous depvars. I do find some relevant literature online that say yes, but they are too technical and I cannot understand. Do I have to transform my binary depvar into a logit? Can I just use the raw depvar in a lpoly regression?
I know there is another new command npregress that can be safely applied to binary depvar (https://blog.stata.com/2017/06/27/no...ssion-but-not/). But in my research, I need to run local regression of yvar (binary) on a xvar (continuous) for two different samples, and then calculate the difference in the effect size of the xvar on the probability of (Y = 1) between the two samples AND also get the confidence interval of this difference, over the whole range of xvar. Insofar as I understand, npregress only gives us the confidence interval of the effect size of xvar on the local mean of yvar (which I assume is equal to the local probability as in my case the yvar is a binary var) within a given sample, while what I finally need is the CI of the difference of the effect sizes of xvar between two samples. Is there any way of obtaining this quantity using npregress?
Thank you very much!
Related Posts with local smoothing regression on binary outcome variable and predict the probability
How to tag outliers?Hi, I would like to create a dummy that's equal to 1 if it's an outlier, and 0 if not. I can use -ex…
Problem with creating subgroups based on age variableI have a panel data of companies and their ages and returns for a period of 20 years. as a control f…
New package predsurv on SSCThanks as always to Kit Baum, a new package predsurv is now available for download from SSC. In Stat…
Inequality analysisHi, I’am new in the forum, I don’t know if I posted in good place for my question, this is my first …
Creating unique group ID variableDear all I have a hopefully trivial question that I can't get my head around right now. My data set…
Subscribe to:
Post Comments (Atom)
0 Response to local smoothing regression on binary outcome variable and predict the probability
Post a Comment