notes smoothing-Splines

# notes smoothing-Splines - Eco 572 Research methods in...

• Notes
• PresidentHackerCaribou10582
• 3

This preview shows pages 1–2. Sign up to view the full content.

Eco 572: Research methods in Demography Smoothing: Splines This continues our work on smoothing. Let's start by making sure we have loaded the data. . infile age pop using /// > (99 observations read) Our application will focus on regression splines, because they are the easiest ones to use in Stata, but we will mention briefly natural regression splines and smoothing splines. Regression Splines A cubic spline S(x) with knots t 1 ... t k has linear, quadratic and cubic terms on x , and one term of the form (x-t j ) 3 + for each knot. These terms can easily be computed and entered in a regression, although one should be careful about multi-collinearity when there are lots of knots. A better solution is to use b-splines , a well-conditioned basis for splines. Stata does not have built-in b-splines, but Roger Newson has contributed a command that you can install from the depository at SSC (the Statistical Software Components archive) or from his own website. Type findit bspline to learn more. Let us use spline regression to smooth the Colombian data. We will use a cubic spline with 3 internal knots at ages 25, 50 and 75. For comparison we will fit a second spline with 4 internal knots at ages 20, 40, 60 and 80. Newson's command requires you to specify the extremes as well, so we add 0 and 100 in both cases, but these don't count as real knots in our terminology. Don't forget to specify p(3)

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Spring '06
• Rodriguez
• Spline interpolation, splines, B-spline, cubic spline

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern