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
Normalize variable as an expanding windowHi, I would like to normalize the price of the following as an expanding window taking into account…
generating many dummy variables with the var name and label nameHi all, Although I was going through some of the website links, I could not solve my issue. So, I am…
Repeated measures ANOVADear Statalist, I'm currently trying to replicate a piece of analysis originally done on SPSS in St…
Rolling windows VAR IRF and graphsDear Stata users, I am trying to implement the var, vector autoregression, and a panel var (pavar) s…
Order data in descending orderDear all, I use the TNIC data from Hoberg&Phillips and want to sort the scores pro competitor_r…
Subscribe to:
Post Comments (Atom)
0 Response to Predicted CEF values out of sample from npregress using the local constant option
Post a Comment