Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question uses the NHANES dataset in R. library(NHANES) For a smaller subset of the original NHANES dataset, I have made a small.nhanes dataset with

This question uses the NHANES dataset in R.

library(NHANES) 

For a smaller subset of the original NHANES dataset, I have made a small.nhanes dataset with 17 variables as follows.

library(NHANES) library(tidyverse) small.nhanes <- na.omit(NHANESraw[NHANESraw$SurveyYr=="2011_12" & NHANESraw$Age > 17,c(1,3,4,8:11,13,24,25,61,77)]) small.nhanes <- small.nhanes %>% group_by(ID) %>% filter(row_number()==1) 

With this dataset, I am trying to randomly select n = 500 observations from the data to perform a simple random sampling. BPSysAve is my outcome of interest and Smoke100 is my exposure. I need help performing an appropriate regression model for my outcome BPSysAve. Aside from the Smoke100 variable and the ID variable, I hope to use not more than 3 variables for my regression.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probability and Random Processes With Applications to Signal Processing and Communications

Authors: Scott Miller, Donald Childers

2nd edition

123869811, 978-0121726515, 121726517, 978-0130200716, 978-0123869814

More Books

Students also viewed these Mathematics questions