Publications by Mark Bounthavong

Logistic Regression in R

05.12.2021

Introduction When you have a binary outcome (Yes/No), you can use a chi square test to compare the differences in proportions across \(n\) number of groups. For instance, if you had two groups (exposed and unexposed) and a binary outcome (event and no event), you can create a 2 x 2 contingency table and use a chi square test to test if there is a...

9598 sym R (14994 sym/55 pcs) 4 img

Visualizing linear regression models - Part 2

10.11.2021

Introduction In a previous article, we discussed how to construct and visualize linear models using R with the lm() command and the predict3d package. In this article, we will build upon our knowledge of the linear model by checking for model fit to the actual data and assessing whether the model’s residuals violate the assumptions. Some of the...

8585 sym R (2904 sym/19 pcs) 2 img

Visualizing Linear Regression Models

29.10.2021

Introduction Linear regression models allow us to determine if changing the values on a variable is associated with the values of another variable. In other words, if I make a 1-unit change in \(X\), how much does Y change? In fact, linear regression is similar to the algebraic equation for a simple line (\(Y = mx + b\), where \(m\) is the slope,...

4434 sym R (3213 sym/17 pcs) 7 img

Sample size estimation and Power analysis in R

30.12.2021

Sample Size Estimation and Power Analysis Mark Bounthavong 12/29/2021 Introduction ⊕This tutorial is available on RPubs Estimating the sample size for a prospective study is one of the first things that researchers do prior to enrolling patients. Doing this exercise helps the researcher to determine if they could feasibly enroll the necessary n...

22030 sym R (7773 sym/45 pcs) 9 img

Linear Regression models using R

28.01.2022

R tutorial on linear regression model Mark Bounthavong 01/28/2022 ⊕This tutorial is located on Rpubs. ⊕The entire R Markdown code is located on my GitHub page. Introduction ⊕We will Use the diabetes.csv data set, which you can download at this location. Linear regression models (also known as “Ordinary Least Squares” model) allow us to ...

17361 sym R (7354 sym/38 pcs) 10 img 5 tbl

Survival analysis in R

10.02.2022

Survival Analysis in R Mark Bounthavong 2/7/2022 ⊕This tutorial is located on RPubs. ⊕The entire R Markdown code is located on my GitHub page ⊕For this tutorial, you will need the following packages: survival, dplyr, psych, survminer, gmodels, and gtsummary. Introduction A dichotomous variable has two outcomes (Yes or No, Survives or Dies, ...

14253 sym R (5529 sym/31 pcs) 3 img 8 tbl