Problem 1: Measurement Unit
The measurement unit has an influence on the results of a regression
model. This is demonstrated by changing the unit for
Breast Circumference
(BC) from centimeters to meters.
Your Solution
- Use the function
readr::read_csv()
to read the
data
- Divide all values in column
Breast Circumference
by
100
- Run the regression using
lm()
Problem 2: Significance Level
Do the same type of comparison of regression modelling results when
changing the measurement unit for the variable HEI in the complete
dataset given in
https://charlotte-ngs.github.io/asmss2023/data/asm_bw_mult_reg.csv
.
Tasks
- Run the same regression model as in Problem 1 of Exercise 1
- Convert the measurement unit for the variable HEI from centimeter to
meter
- Compare the results of the two regression models with a special
focus on the significance level
Your Solution
- The same regression model as in Problem 1 of Exercise 1
- Convert the values in column HEI from centimeter to meter
- Fit again a multiple regression model
Latest Changes: 2023-03-11 07:52:16 (pvr)
LS0tCnRpdGxlOiBBcHBsaWVkIFN0YXRpc3RpY2FsIE1ldGhvZHMgLSBOb3RlYm9vayAyCmF1dGhvcjogUGV0ZXIgdm9uIFJvaHIKZGF0ZTogJzIwMjMtMDMtMDYnCm91dHB1dDogaHRtbF9ub3RlYm9vawpwYXJhbXM6CiAgZG9jdHlwZToKICAgIGxhYmVsOiBEb2N1bWVudCBUeXBlCiAgICB2YWx1ZTogc29sdXRpb24KICAgIGNob2ljZXM6CiAgICAtIGV4ZXJjaXNlCiAgICAtIHNvbHV0aW9uCiAgICAtIG5vdGVib29rCiAgaXNvbmxpbmU6CiAgICBsYWJlbDogT25saW5lICh5L24pCiAgICB2YWx1ZTogdHJ1ZQogICAgY2hvaWNlczoKICAgIC0gdHJ1ZQogICAgLSBmYWxzZQotLS0KCgoKYGBge3IgZXgwMi1wMDEtc2V0dXAsIGVjaG89RkFMU0UsIGV2YWw9VFJVRSwgbWVzc2FnZT1GQUxTRSwgd2FybmluZz1GQUxTRX0KIyBkZWZpbmUgZGF0YSBkaXJlY3RvcnkgZGVwZW5kaW5nIG9uIG9ubGluZSBzdGF0dXMKaWYgKHBhcmFtcyRpc29ubGluZSl7CiAgc19kYXRhX2RpciA8LSAi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