Hi all,
I have a question about how to do model validation using Stata.
I used a training dataset to run regression and get the coefficients of the regressions. I want to first, save the result of these coefficients and second, use these coefficients in a new dataset to do prediction and calculate MSE, MPE, etc.
I have many variables and one categorical variable has around 3000 values. I wonder if anyone knows how to save the regression coefficients and then apply them to the new dataset to do prediction.
Thanks!
Related Posts with Model Validation Using Stata
I2 using metaprop states "overall (I^2=0.00%, p= . )" NB: no I2 and no p-value for I2Hi. I am using metaprop to calculate prevalence of infections. The command I am using is metaprop p…
Generate a variable based on id number and its chosen indicatorDear Stata users, I encounter this question when using one-to-one matching. The variable id is numb…
Compare: Logit regress with Categorical variables with Chi2 testDear all, I have problem with Logit regress. PHP Code: use https://thongke.club/data/logit.dt…
PPML vs Spatial gravity modelHello everyone, Generally, we know that the PPML (Poisson Pseudo Maximum likelihood) estimation is …
using lagged values to find 5 year growth rate when there are missing years in the dataHi, I want to create a variable that shows the 5 year growth rate. My first thought is to write som…
Subscribe to:
Post Comments (Atom)
0 Response to Model Validation Using Stata
Post a Comment