The name is absent



Stata Technical Bulletin

25


between the values of the spline at different reference points. Here, we estimate the difference between expected mileage at
weights of 2,530 and 4,070 pounds:

. Iincom cs3-c≡5

( 1) c≡3 - c≡5 = 0.0

mpg I Coef.   Std. Err.       t     P>t        [957. Conf. Interval]

---------+--------------------------------------------------------------------

(1) I   7.142029   1.058829      6.745   0.000       5.028598     9.25546

We see that cars weighing 2,530 pounds are expected to travel 5.03 to 9.26 more miles per gallon than cars weighing 4,070
pounds.

We can, instead, choose an alternative set of reference points, using noexref and specifying our own knots. The initial
knots are the same initial knots as in the previous model (where they were also reference points), namely 5 equally spaced
values from the minimum to the maximum of weight. However, the new reference points are 7(= 5 + 2) equally spaced values
covering the same range. The knots and the reference points are therefore out of synchrony, but the reference points are now all
in the completeness region of the spline because they are in the range spanned by the initial knots. (Remember that by default,
bspline and frencurv add new knots on the left and right to make the spline complete over the range of the original knots.)
The model is exactly the same model as before (because a spline model is defined by the knots), but the parameters are now
all sensible within-range mpg values, which nontechnical people can understand. Note that we have used Iabfmt to handle the
noninteger values of the reference points in the variable labels.

. frencurv,xvar(weight) refpts(1760(513.33333)4840) noexr k(1760(770)4840) gen(sp)
> power(3) Iabfmt(%7.2f)

. describe sp*

20.

spl

float

7.8.4f

Spline at 1760.00

21.

sp2

float

7.8.4f

Spline at 2273.33

22.

sp3

float

7.8.4f

Spline at 2786.67

23.

sp4

float

7.8.4f

Spline at 3300.00

24.

sp5

float

7.8.4f

Spline at 3813.33

25.

sp6

float

7.8.4f

Spline at 4326.67

26.

sp7

float

7.8.4f

Spline at 4840.00

(Continued on next page)



More intriguing information

1. Parallel and overlapping Human Immunodeficiency Virus, Hepatitis B and C virus Infections among pregnant women in the Federal Capital Territory, Abuja, Nigeria
2. Skill and work experience in the European knowledge economy
3. Before and After the Hartz Reforms: The Performance of Active Labour Market Policy in Germany
4. Secondary school teachers’ attitudes towards and beliefs about ability grouping
5. SOCIOECONOMIC TRENDS CHANGING RURAL AMERICA
6. Governance Control Mechanisms in Portuguese Agricultural Credit Cooperatives
7. Economie de l’entrepreneur faits et théories (The economics of entrepreneur facts and theories)
8. Real Exchange Rate Misalignment: Prelude to Crisis?
9. A Rare Presentation of Crohn's Disease
10. The name is absent
11. Weak and strong sustainability indicators, and regional environmental resources
12. The role of statin drugs in combating cardiovascular diseases
13. Empirical Calibration of a Least-Cost Conservation Reserve Program
14. ‘Goodwill is not enough’
15. Wettbewerbs- und Industriepolitik - EU-Integration als Dritter Weg?
16. Centre for Longitudinal Studies
17. The name is absent
18. The name is absent
19. Sectoral Energy- and Labour-Productivity Convergence
20. The name is absent