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
PCA indexI constructed an index on Stata using "pca rotate predict". When I produced the summary statistics t…
Aggregate duplicatesHi, My data is from a grocery store in the UK and consists of 3 columns. The first represents a uni…
Deleting multiple observations if value is missingI have the following dataset with observations of volumes (vol) traded by 5967 unique companies. Co…
divide numbers in stataHi, I have a panel data set where i have variables "location"(where number 1 means one location, 2 a…
bayesmh for bayes: heckprobitDear STATA experts, Thank you for reading my post. I wish to program the command in STATA 16 bayes:…
Subscribe to:
Post Comments (Atom)
0 Response to local smoothing regression on binary outcome variable and predict the probability
Post a Comment