Hi Stata Forum
I have been using Patrick Royston's very useful suite of commands to carry out fractional polynomial regressions.
I was wondering if it is possible to use fracpred to calculate predictions for values not actually observed. For example:
Is it possible to get a predicted value for displacement=80, for example?
Many thanks
Sophie
I have been using Patrick Royston's very useful suite of commands to carry out fractional polynomial regressions.
I was wondering if it is possible to use fracpred to calculate predictions for values not actually observed. For example:
Code:
. sysuse auto, clear
(1978 Automobile Data)
. mfp: regress mpg weight displacement foreign
[output deleted]
. fracpred pred, for(displacement)
. sort displacement
. l displacement pred in 1/5
+---------------------+
| displa~t pred |
|---------------------|
1. | 79 29.81834 |
2. | 85 28.3481 |
3. | 86 28.1325 |
4. | 86 28.1325 |
5. | 89 27.52874 |
+---------------------+
Many thanks
Sophie

Comment