Inference with and without outlier (t-test)
Not only can one point change the estimated regression line, but it can also change the inferential analysis.
The datasets with and without the outlier are provided as hypdata_outlier and hypdata_no_outlier respectively.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Inference for Linear Regression in R
คำแนะนำการฝึกหัด
- Run a linear regression of
responsevs.explanatoryonhypdata_outlier, and extract the coefficient-level information. - Do the same for
hypdata_no_outlier. - Look at the output. How do the coefficients and p-values differ?
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Model response vs. explanatory on hypdata_outlier and tidy it
___
# Do the same on hypdata_no_outlier
___