Hello,
I am having trouble predicting specific CEF values using --npregress-- with the local constant option --estimator(constant)--. The exact command I first run is --npregress kernel y x, estimator(constant) noderivative--. The command will not run without the --noderivative-- option. My end goal is to get the prediction for CEF(x=0), where x=0 does not occur in my sample.
I can do this when using the local linear option (the default of --npregress--) through the command --margins, at(x=0)--, but margins gives me the error "estimates post: matrix has missing values" when using local constant. I assume it has to do with the fact that local constant does not have a derivative term like local linear. But is there no other way to predict values for the CEF out of sample without margins, when I use the local constant option? That would seem to be a serious flaw with the command.
Thanks for any help.
Sam
Related Posts with Predicted CEF values out of sample from npregress using the local constant option
Setting e(sample) to compute boostrap standard errorsHello, I am trying to obtain direct and indirect effects for multiple mediators with multiply imput…
Interpreting coefficient vs. margins from three-way interactionHello, I have a question regarding the interpretation of a three-way interaction in a GEE model wit…
How to plot regression in an intervalHi all, can any of you tell me if the below representation of regression analysis is possible in ST…
Homogeneity test (Hsiao test) on panel data balanced with many missing valuesDear all, I'm new on Stata community and I'm using stata 12. I'm trying to determine whether governa…
multiple fixed effect wiith areghi. a run this code, but i faced with an error. please help me. xi: areg inv RE_value index_state yr…
Subscribe to:
Post Comments (Atom)
0 Response to Predicted CEF values out of sample from npregress using the local constant option
Post a Comment