You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#train linear model forest
lmf <- lm_forest(iv_x.s16, sch_exp.s16, iv_w.s16)
#prediction for section 16
tau.hat.s16 <- predict(lmf)$predictions
#make it 2D instead of 3D
tau.hat.s16 <- drop(tau.hat.s16)
#prediction for non section 16
tau.hat.ns16 <- predict(lmf, newdata=iv_x.ns16)$predictions
tau.hat.ns16 <- drop(tau.hat.ns16)
The predictions for non section 16 are the same for all observations though they have different x
When I use the LMF to predict the slopes hk(x) for new data, the prediction is the same for all samples, which should differ for different x.
The text was updated successfully, but these errors were encountered: