Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started