lab9 - STAT5044: lab 9 Inyoung Kim 1 / 11 Outline 1 How to...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: STAT5044: lab 9 Inyoung Kim 1 / 11 Outline 1 How to fit the segmented regression in R 2 / 11 Example The data is an old economic dataset on 50 different countries. These data are averages from 1960 to 1970 (to remove business cycle or short-term fluctuations). dpi is the per capita income in U.S. dollars; ddpi is the percentage rate of change in per capita disposable income; sr is aggregate personal savings divided by disposable income. The percentage of population under 15(pop15) and over75(pop75) is also recored. The data come from Belsley, Kuh, and Welsch (1980). The goal is to study the relationship between sr and ddpi. 3 / 11 Call data > data(savings) > savings sr pop15 pop75 dpi ddpi Australia 11.43 29.35 2.87 2329.68 2.87 Austria 12.07 23.32 4.41 1507.99 3.93 Belgium 13.17 23.80 4.43 2108.47 3.82 . . . Jamaica 7.72 41.12 1.73 380.47 10.23 Uruguay 9.24 28.13 2.72 766.54 1.88 Libya 8.89 43.69 2.07 123.58 16.71 Malaysia 4.71 47.20 0.66 242.69 5.08 4 / 11 Fit simple linear regression...
View Full Document

Page1 / 11

lab9 - STAT5044: lab 9 Inyoung Kim 1 / 11 Outline 1 How to...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online