Publications by YOUR NAME HERE

Project 1 Proposal Template with Floating TOC for 432 in Spring 2021

29.01.2021

R Packages and Setup library(knitr); library(rmdformats) library(here); library(janitor); library(magrittr) library(rms); library(broom) # other packages as needed can go here library(tidyverse) 1 Data Source Details, details. 2 The Subjects 3 Loading and Tidying the Data 3.1 Loading the Raw Data Ingest your raw data here. 3.2 Cleaning...

2224 sym R (2192 sym/3 pcs) 1 tbl

Project 1 Proposal Template with Read The Down for 432 in Spring 2021

29.01.2021

Code Show All Code Hide All Code Real Title Goes Here Real Title Goes Here R Packages and Setup 1 Data Source 2 The Subjects 3 Loading and Tidying the Data 3.1 Loading the Raw Data 3.2 Cleaning the Data 3.3 Another Cleaning the Data subheading. 4 The Tidy Tibble 4.1 Listing the Tibble 4.2 Size and Identifiers 4.3 Saving the R data set 5 ...

2941 sym R (2192 sym/3 pcs) 1 tbl

The lindner example (2021 version)

17.02.2021

# Load packages library(broom) library(patchwork) library(cobalt) library(Matching) library(tableone) library(twang) library(janitor) library(here) library(magrittr) library(lme4) library(tidyverse) Note: we will also use the broom.mixed package, but we are not loading it as to prevent it conflicting with the functions of broom. If you...

76768 sym R (69819 sym/206 pcs) 19 img

Toy Logistic Regression to demonstrate Exploding Coefficients

26.03.2021

library(knitr) library(janitor) library(broom) library(tidyverse) Create a data set set.seed(123) outcome <- c(rep("Yes", 40), rep("No", 60)) predA <- rnorm(100, mean = 0, sd = 1) predB <- rbinom(100, 1, 0.3) predX <- c(rep("Low", 10), rep("Middle", 15), rep("High", 50), rep("Middle", 25)) temp_data <- tibble(outcome, predA...

3627 sym R (4482 sym/13 pcs) 3 tbl

Project 2 Template for 432 in Spring 2021

27.03.2021

Code Show All Code Hide All Code Download Rmd Your Title (No more than 80 characters) goes here Your Title (No more than 80 characters) goes here Preliminaries 1 Background 2 Research Questions 3 My Data 3.1 Data Ingest 3.2 Tidying, Data Cleaning and Data Management 3.3 Missingness 3.4 Tidied Tibble 4 Code Book and Clean Data Summary 4.1...

23772 sym R (9609 sym/23 pcs) 8 img 14 tbl

Toy NHANES Example for Project 2

22.04.2021

1 Packages I’ll Use library(here) library(magrittr) library(janitor) library(haven) library(nhanesA) library(naniar) library(rsample) library(gtsummary) library(tidyverse) 2 Objective Suppose I wanted to include the following items in a data set, from both 2017-18 and 2015-16 NHANES. From the DEMO files: DEMO_J for 2017-18 and DEMO_I f...

34537 sym R (12548 sym/107 pcs) 5 img 9 tbl

431 Fall 2021 Project B Study 1 Example Report

10.11.2021

Code Show All Code Hide All Code 431 Project B Study 1 Example Report 431 Project B Study 1 Example Report Important Reminders from Dr. Love 1 Setup and Data Ingest 1.1 Initial Setup and Package Loads 1.2 Loading the Raw Data into R 1.3 Contents of the Raw Tibbles 1.4 Two Merging Steps 1.5 Checking the Merge 1.6 Selecting only the variable...

53272 sym R (31561 sym/135 pcs) 9 img 9 tbl

Class 03 Demonstration Results

29.08.2021

1 Setup We’re using R Markdown to gather together into a single document the code we build, text commenting on and reacting to that code, and the output of the analyses we build. 1.1 Load packages and set theme library(janitor) library(knitr) library(magrittr) library(tidyverse) theme_set(theme_bw()) Loading packages in R is like opening ...

8998 sym R (14361 sym/62 pcs) 10 img 1 tbl

Getting Started with R (2021)

16.08.2021

Links to the materials discussed here are found at https://github.com/THOMASELOVE/431-2021/blob/main/software/README.md This includes the R Markdown code, the downloadable PDF, the HTML produced by the R Markdown code, and the 431-first-r-template.Rmd file I’ve provided. 1 Purpose of this Document This is meant to walk you through the steps o...

9544 sym R (6718 sym/50 pcs) 10 img

Project A proposal example for 431 in 2021

19.08.2021

YOUR PROJECT A TITLE YOUR PROJECT A TITLE 0.1 Note to Students 1 Preliminaries 1.1 My R Packages 1.2 Data Ingest 2 Data Development 2.1 Selecting My Data 2.2 Repairing the fipscode and factoring the state 2.3 Creating Binary Categorical Variables 2.4 Creating Multi-Category Variables 2.5 Structure of My Tibble 3 Codebook 3.1 Proposal Requi...

15597 sym R (14615 sym/39 pcs) 9 tbl