Question: Lab Assignments Part 1: Using Hq_lab1.csv dataset (make sure to import csv. file into R and name the imported data as survey) 1) Calculate mean
Lab Assignments Part 1: Using Hq_lab1.csv dataset (make sure to import csv. file into R and name the imported data as "survey") 1) Calculate mean and sd for variable "Height" by "Sex" (report a) pathway of input data, b) R codes, c) results). 2) Boxplot of "Height" by "Happy", report a) R codes, b) graph (hint: factor "Happy" first), c) number of boxplot Part 2: Create a Table 3.2 in R studio and calculate (keep 4 decimal points for all results) 1) Prevalence of CVD by smoking status 2) Relative ratio of CVD for current smoker compared to nonsmoker 3) Risk difference of CVD between smokers and nonsmokers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
