If I split the data into training and test group, can I use npregress to predict the mean value in the test group? In other words, can I use npregress to predict y at some given x? For example,
sysuse auto, clear
set seed 123
gen u=runiform()
npregress kernel price weight length foreign mpg rep78 headroom trunk turn displacement gear_ratio if u<=0.75, kern(gau)
predict ye
su ye if u>0.75
It seems that no y in the test group were predicted.
Related Posts with Can npregress be used to predict mean value of y at given x
Error: running sem re using xsmleHi everyone, I used spmat and xsmle to do spatial panel analysis and successfully run- HTML Code:…
Creation of quintile variable in a stataHi all, I have a data in my stata for Realassets variable,EXPDUM which is Export dummy equal 1 if fi…
fixed effects survey data two stages with different questionariesMy data set has two waves of survey data in a questionnaire form and test scores for the same subjec…
How to fix the fracmented result tableI ran a correlation command and got a fragmented table. How can I fix it into the same tableArray …
How can I get P-value for elasticity after QUAIDS?Dear statalists: I want to calculate compensated elasticity after using QUAIDS to estimate demand sy…
Subscribe to:
Post Comments (Atom)
0 Response to Can npregress be used to predict mean value of y at given x
Post a Comment