Read the Smoking habit Data into R
data(smoking, package='openintro')
Smoking habits of UK residents. (1.10, p. 20) A survey was conducted to study the smoking habits of UK residents. Below is a data matrix displaying a portion of the data collected in this survey. Note that “£” stands for British Pounds Sterling, “cig” stands for cigarettes, and “N/A” refers to a missing component of the data. (a) What does each row of the data matrix represent? (b) How many participants were included in the survey? (c) Indicate whether each variable in the study is numerical or categorical. If numerical, identify as continuous or discrete. If categorical, indicate if the variable is ordinal
data(smoking, package='openintro')
head(smoking)
## gender age marital_status highest_qualification nationality ethnicity
## 1 Male 38 Divorced No Qualification British White
## 2 Female 42 Single No Qualification British White
## 3 Male 40 Married Degree English White
## 4 Female 40 Married Degree English White
## 5 Female 39 Married GCSE/O Level British White
## 6 Female 37 Married GCSE/O Level British White
## gross_income region smoke amt_weekends amt_weekdays type
## 1 2,600 to 5,200 The North No NA NA
## 2 Under 2,600 The North Yes 12 12 Packets
## 3 28,600 to 36,400 The North No NA NA
## 4 10,400 to 15,600 The North No NA NA
## 5 2,600 to 5,200 The North No NA NA
## 6 15,600 to 20,800 The North No NA NA
str(smoking)
## Classes 'tbl_df', 'tbl' and 'data.frame': 1691 obs. of 12 variables:
## $ gender : Factor w/ 2 levels "Female","Male": 2 1 2 1 1 1 2 2 2 1 ...
## $ age : int 38 42 40 40 39 37 53 44 40 41 ...
## $ marital_status : Factor w/ 5 levels "Divorced","Married",..: 1 4 2 2 2 2 2 4 4 2 ...
## $ highest_qualification: Factor w/ 8 levels "A Levels","Degree",..: 6 6 2 2 4 4 2 2 3 6 ...
## $ nationality : Factor w/ 8 levels "British","English",..: 1 1 2 2 1 1 1 2 2 2 ...
## $ ethnicity : Factor w/ 7 levels "Asian","Black",..: 7 7 7 7 7 7 7 7 7 7 ...
## $ gross_income : Factor w/ 10 levels "10,400 to 15,600",..: 3 9 5 1 3 2 7 1 3 6 ...
## $ region : Factor w/ 7 levels "London","Midlands & East Anglia",..: 6 6 6 6 6 6 6 6 6 6 ...
## $ smoke : Factor w/ 2 levels "No","Yes": 1 2 1 1 1 1 2 1 2 2 ...
## $ amt_weekends : int NA 12 NA NA NA NA 6 NA 8 15 ...
## $ amt_weekdays : int NA 12 NA NA NA NA 6 NA 8 12 ...
## $ type : Factor w/ 5 levels "","Both/Mainly Hand-Rolled",..: 1 5 1 1 1 1 5 1 4 5 ...
Each role represent a single observation of UK resident
There are 1691 Participant (Observation) in the Survey.
Gender is Nominal Categoriacal
Age is Discrete numerical
MaritalStatus is Norminal Categorical
HighestQualification ordinal Categorical
Nationality is nominal Categorical
Ethnicity is norminal Categorical
GrossIncome is ordinal Categorical
Region is nominal Categorical
Smoke is Categorical
AmtWeekends is Discrete numerical
AmtWeekdays is Discrete numerical
Type is nominal Categorical
Cheaters, scope of inference. (1.14, p. 29) Exercise 1.5 introduces a study where researchers studying the relationship between honesty, age, and self-control conducted an experiment on 160 children between the ages of 5 and 15. The researchers asked each child to toss a fair coin in private and to record the outcome (white or black) on a paper sheet, and said they would only reward children who report white. Half the students were explicitly told not to cheat and the others were not given any explicit instructions. Differences were observed in the cheating rates in the instruction and no instruction groups, as well as some differences across children’s characteristics within each group. (a) Identify the population of interest and the sample in this study. (b) Comment on whether or not the results of the study can be generalized to the population, and if the findings of the study can be used to establish causal relationships.
(a)i The population of interest in this study is the children between the ages of 5 to 15.
ii The sample used in this study are the 160 children between the ages of 5 to 15.
Yes, the findings from this study can be used to establish causal relationship since a change in one variable as a result of the other.
Reading the paper. (1.28, p. 31) Below are excerpts from two articles published in the NY Times: (a) An article titled Risks: Smokers Found More Prone to Dementia states the following: “Researchers analyzed data from 23,123 health plan members who participated in a voluntary exam and health behavior survey from 1978 to 1985, when they were 50-60 years old. 23 years later, about 25% of the group had dementia, including 1,136 with Alzheimer’s disease and 416 with vascular dementia. After adjusting for other factors, the researchers concluded that pack-a- day smokers were 37% more likely than nonsmokers to develop dementia, and the risks went up with increased smoking; 44% for one to two packs a day; and twice the risk for more than two packs.”
Based on this study, can we conclude that smoking causes dementia later in life? Explain your reasoning.
Sample popuation = 23123 25% - Dementia (includes 1136 - Alzheimer, 416 - Vascular dementia) = 5781 members There is no enough information from the experiament to show that smoking can causes dementia later in life. This is an observational study. There was no treatment and control group. We cannot derive causal relationship on observational study. Also we don’t know what the “other factor” are
The statement is not Justified because the researcher found out that student with behavioural issue are twice likely to have sleep disorder but it didn’t infer that sleep disorder leads to bullying. No enough information to draw conclusion from the observational studies.
Exercise and mental health. (1.34, p. 35) A researcher is interested in the effects of exercise on mental health and he proposes the following study: Use stratified random sampling to ensure rep- resentative proportions of 18-30, 31-40 and 41-55 year olds from the population. Next, randomly assign half the subjects from each age group to exercise twice a week, and instruct the rest not to exercise. Conduct a mental health exam at the beginning and at the end of the study, and compare the results.
This is an experimental study (Stratified Ramdom sampling)
The treatment are helf the sample from each age group 18-30, 31-40, 41-55. The control group are the other half sample from each age group 18 -30, 31-40, 41-55.
Yes. The blocking variable is the age.
No. There is no Binding variable
This study is a stratified ramdom sampling that included all age group of the population; so, it can be use to establish a casual relationship between exercise and mental Health.
I will fully recommend it for funding since it is an experimental study with control groups.