Lab 3B
Directions: Follow along with the slides and answer the questions in red font in your journal.
"1" for males, "0" for females."1", or non-smoker "0".lungsWhat is the effect of childhood smoking on lung health?
"age", "lung_cap", "height", "gender","smoker", in that order.gender and smoker from numeric to character.gender and smoker:
gender, use recode to change "1" to "Male" and "0" to "Female".smoker, use recode to change "1" to "Yes" and "0" to "No".lungs data is from an observational study.lungs data to create an xyplot of age and lung_cap.
Do people who smoke tend to have lower lung capacity than those who do not smoke?