Publications by Dr. Viviana Wu
Data Cleaning 1
# install.packages("haven") library(haven) # install.packages("dplyr") library(dplyr) # install.packages("tidyverse") library(tidyverse) Import an .xpt file to R using the haven library Let’s import BRFSS survey data to R. The .xpt file is an open format, as is required for submission of the data to the FDA. df1 <- read_xpt("LLCP2020.XPT"...
2314 sym R (3591 sym/16 pcs)
Lab 6
Lecture: Multiple Linear Regression Slides for Week 6 is available here. In this tutorial, you will learn how to: run multiple regression models with continuous and dummy variables identify and interpret coefficients, p-value, and goodness of fit measures evaluate and choose a final model A Reminder Please only write codes inside a code chuck...
6050 sym R (6390 sym/27 pcs)
Lab 6 (Answer Key)
Lecture: Multiple Linear Regression Slides for Week 6 is available here. In this tutorial, you will learn how to: run multiple regression models with continuous and dummy variables identify and interpret coefficients, p-value, and goodness of fit measures evaluate and choose a final model A Reminder Please only write codes inside a code chuck...
8205 sym R (7723 sym/29 pcs)
Lab 7 (Answer Key)
Lecture 7: Regression Diagnostics and Variable Transformation Slides for Week 7 is available here. In this tutorial, you will learn how to: run a polynomial linear regression with a log-transformed variable and a quadratic term identify and interpret coefficients, p-value, and goodness of fit measures do logarithm transformation on continuous v...
14123 sym R (13555 sym/114 pcs) 16 img
Quiz 2 (Answer Key)
Instructions Answer all questions as best you can and in complete sentences. There are 18 questions in total. Round to 2 decimal places to be precise. Two bonus points will be given for professional presentation, e.g., labeled graphs, short #comment lines in code chucks to explain codes, as well as thorough and accurate interpretation of results...
16123 sym R (17760 sym/64 pcs) 11 img