Publications by steve

crp245-part2-interaction

08.03.2021

# # CRP 245 Part 2 Day 6-7 Interaction # # including interactions in models # FEV1 and Smoking Status: # A study was conducted to determine if there was an association # between smoking status and forced expiratory volume in one # second (FEV1) in patients with COPD.FEV1 was measured in liters. # Smoking groups of interest were smoke...

39 sym R (8158 sym/33 pcs)

crp245-part2-day6-7-model-selection

08.03.2021

# # CRP 245 Part 2 Day 6-7 Model Selection # Example demonstrating forward and backward model selection # # Pima Diabetes Data Set: # A population of women who were at least 21 years old, of Pima Indian heritage and # living near Phoenix, Arizona, was tested for diabetes according to World Health # Organization criteria. The data were co...

35 sym R (14900 sym/29 pcs)

crp245-Part2-day5

03.03.2021

# ~ CRP 245 Part 2 Day 5 More Linearity ~ # Repeats some code from Part 2 Day 4 # with a few changes to simplify coding # Download and load the linearity dataset: load(url("http://www.duke.edu/~sgrambow/crp241data/linearity.RData")) # Plot the data to see the relationship between x and y: # - The dots represent the observed data, which ...

47 sym R (12034 sym/35 pcs) 6 img

CrP245 Part 2 Day 6 Missing Data

08.03.2021

# # CRP 245 Part 2 Day 6 # # Missing Data # ## This file contains the R code used in ## Van Buuren, S., Groothuis-Oudshoorn, K. (2011) ## mice: Multivariate Imputation by Chained Equations in R. ## Journal of Statistical Software, 45(3). # # https://www.jstatsoft.org/article/view/v045i03 ### ### 2.4 Simple example ### ####...

44 sym R (7772 sym/33 pcs) 5 img

crp245-final-lasso-ridge

15.04.2021

# # CRP245 Spring 2021 Final Exam # # R code for Question 8 and 9 # Prediction for Heart Failure Patients -- Pakistan Case Study # n=299 patients, 13 variables # # Variables # # Time Follow-up time in days # Event Mortality or censor # Gender (*using variable name from original study) # Smoking Smokin...

57 sym R (8886 sym/46 pcs) 6 img

crp245-sp21-propensity-example

21.04.2021

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Module 4 Days 3 & 4 ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # RHC data # Data Set: rhc # Data dictionary: # (1) sadmdte study admission date # (2) dschdte hospital discharge date # (3) lstctdte date of last contact # (4) cardiohx if co1-9 in(1,3,4,5) then cardiohx = 1 ...

47 sym R (41895 sym/38 pcs) 5 img

CRP245SP22-Homework1 R Code

21.01.2022

# ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Homework 1 ~ # ~ Problem 1 ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~ # These data were used to examine the effect of participant characteristics # on medical costs billed by health insurance and are comprised of a sample # of 1138 beneficiaries currently enrolled in a specific insurance plan alo...

25 sym R (6456 sym/19 pcs) 1 img

01-13-22_logistic-prostate_cancer

10.01.2022

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 245 Part 1 01-13-22 ~ # ~ Review Logistic Regression ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Logistic Data Example -- Prostate Cancer Data # When a patient is diagnosed as having cancer of the prostate, # an important question in deciding on treatment strategy for # the patient is whether or not...

43 sym R (12395 sym/33 pcs) 5 img

crp241-assignment4

03.11.2021

# ~~~~~~~~~~~~~~~~~~~~~~~~~ # ~ CRP 241| Assignment 4 ~ # ~~~~~~~~~~~~~~~~~~~~~~~~~ # last updated on 10/25/21 # Prevention of REnal and Vascular END-stage Disease (PREVEND) study # A study by Joosten, et al. examined the association of statin use # and other variables with cognitive ability (as measured by the # Ruff Figural Fluency Tes...

66 sym R (13075 sym/59 pcs) 2 img

CRP241 - Assignment 1 Code

07.09.2021

# CRP241 # Assignment 1 KeY # last updated 09-06-21 # data dictionary for assignment1-demo-data # id Patient ID code # age age of patient in years # sex 0 is male; 1 is female # migraine 0 no migraine diagnosis; 1 migraine diagnosis # chronicity chronicity of headaches in years # group treatment...

16 sym R (3812 sym/11 pcs)