Publications by steve
crp245sp21-part1day7 R Script
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Part 1 Day 7 ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~ # (1) Number of Births Example: # A study was performed to describe the frequency # of births. Researchers were interested in determining # whether the number of births to women living in rural # versus urban areas differed. Researchers were # able t...
53 sym R (14028 sym/45 pcs) 2 img
part1_day6_Rscript.R
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Part 1 Day 6 ~ # ~ Count Regression ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Number of Births Example: # A study was performed to describe the frequency of births. # Researchers were interested in determining whether the # number of births to women living in rural versus urban # areas differe...
75 sym R (10551 sym/64 pcs) 3 img 1 tbl
CRP245 Part 2 Day 4 Assessing and Relaxing Linearity
# ************************************* # CRP 245 Part 2 Day 4 Linearity # ************************************* # ************************************* # * Sample R Code for Testing Linearity between # * a Continuous Response / Continuous Predictor # * Using Restricted Cubic Splines and a Lack-of-Fit Test # ****...
48 sym R (12636 sym/33 pcs) 9 img
Part2-Day1-FEV-Rscript
# ~ CRP 245 Part 2 Day 1 ~ # Example 1 -- Intuition about "Adjusted" Regression # FEV1 and Genetic Variation: # A study was conducted to determine if there was an # association between a genetic variant and forced # expiratory volume in one second (FEV1) in patients with COPD. # FEV1 was measured in liters. Genotypes of interest were wil...
37 sym R (7547 sym/30 pcs) 1 img
Part 2 Day 2 Rscript
# ~ CRP 245 Part 2 Day 2 ~ # Framingham Data # Dataset: framBMI # The Framingham Study is a longitudinal investigation of # constitutional and environmental factors influencing the # development of CVD in men and women. Examination of participants # has taken place every two years and the cohort has been followed # for morbidity and mo...
99 sym R (28931 sym/92 pcs) 1 img
crp245-part2-day3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Part 2 Day 3 ~ # ~ Regression Diagnostics ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~ ################################################################## # Muscle Contraction in Alcoholics: # This dataset contains maximum voluntary contraction (MVC) of quadriceps muscle, age, # and height, of 41 male alcoholic...
111 sym R (19737 sym/86 pcs) 31 img
crp245-final-prevend-analyses
# # CRP245 Spring 2021 Final Exam # # R Code for Question 4-7 # Prevention of REnal and Vascular END-stage Disease (PREVEND) study # Variables # RFFT Ruff Figural Fluency Test (RFFT) measure of cognitive function # Age Age in years # Statin 1=Statin User; 0=otherwise # Sex sex at birth (0=males; 1=female...
54 sym R (13599 sym/37 pcs) 26 img
CRP245 ISLR Chapter 5 Lab
# An Introduction to Statistical Learning with Applications in R # Chapter 5 Lab: Cross-Validation and the Bootstrap # In this lab, we explore the resampling techniques covered in this chapter. # Some of the commands in this lab may take a while to run on your computer. # The Validation Set Approach # We explore the use of the validation...
60 sym R (15907 sym/50 pcs) 4 img
ISLR Chapter 6 Lab 1
# An Introduction to Statistical Learning with Applications in R # Chapter 6 Lab 1: Subset Selection Methods # Best Subset Selection # The goal here is to demonstrate best subset selection # to the Hitters data which includes variables related to # baseball performance. The goal is to predict a players # salary on the basis of these va...
61 sym R (26326 sym/52 pcs) 3 img
ISLR Chapter 6 Lab 2
# An Introduction to Statistical Learning with Applications in R # Chapter 6 Lab 2: Ridge Regression and the Lasso # We will use the glmnet package in order to perform ridge regression and # the lasso. The main function in this package is glmnet(), which can be used # to fit ridge regression models, lasso models, and more. This function has...
58 sym R (15105 sym/49 pcs) 3 img