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
Free text processing of medical notes I am attempting to search pathology reports, which are in string format, to identify only those whi…
xtlsdvc and xtbcfeHello, I am trying to fit a dynamic model determinants of corporate cash holdings for ~1700 firms a…
Merge V-Dem with UCDPHi! I am currently working on my bachelors-thesis, where I will measure the impact of voilent confl…
Adjusting the DSS Stata 'Prediction of normal returns formula'Dear Statalists, in order to be able to calculate non-parametric significance tests when doing an e…
Relative risk from nlcom different from regression outputHi, I have a similar question to one posed a few years ago in this thread. I am running an adjusted…
Subscribe to:
Post Comments (Atom)
0 Response to Predicted CEF values out of sample from npregress using the local constant option
Post a Comment