Dear Statalisters,
I am struggling to solve an arguably simple problem:
However, I can't figure out how to get this list of hypothetical values between 0 and 100.
I might be falsely using the predict command?
Here is a simple example of my attempts with the auto dataset:
Any hint is highly appreciated!
Best regards,
John
I am struggling to solve an arguably simple problem:
- I have a variable (min:0, max: 100) that is drawn from a skew-normal distribution.
- I want to fit a skew-normal distribution model and compute the fitted values for the integers from 0 to 100.
However, I can't figure out how to get this list of hypothetical values between 0 and 100.
I might be falsely using the predict command?
Here is a simple example of my attempts with the auto dataset:
Code:
sysuse auto, replace // Run skew-normal-regression ** ssc install st0207 skewnreg mpg // Show fitted values vs. histogram skewrplot, fitted // Replace variable values with hypothetical range set obs 101 egen range = seq(), f(0) t(100) replace mpg = range // Predict values from fitted model? predict mpg_fitted
Best regards,
John

Comment