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
Help with text on a graph aligning when there are negative numbers eg [-1.23] lining up with [1.23]Hi all, I'm hoping the tag line explains the issue! I'm plotting on a graph (like a forestplot) a co…
Seek Help to Count the Number of the Persons Who Have Different Type Gap in a Longitudinal Dataset and Correct it with Stata.I have a longitudinal dataset below, which is about students' grade retention in K-12 education syst…
Using loop for generate and replaceHi, I would like to make a loop were I create 20 new variables (stretching 2001-2020) using two cons…
How to chanche variable date from "2022-6-7 00:00:00" to "2022-6-7"?How to chanche variable date from "2022-6-7 00:00:00" to "2022-6-7"? …
Q - A problem with qregpd: a Quantile Regression in an Unbalanced Panel Data setHi everyone, I am trying to perform a Quantile Regression with an unbalanced panel data set, to fin…
Subscribe to:
Post Comments (Atom)
0 Response to Model Validation Using Stata
Post a Comment