Show the code
library(haven)
# create table
library(gtsummary)
# data wrangling and other functions
library(tidyverse)
# if you want to have a output similar to stata
library(tidylog)
#imputation
library(mice)
# Limit significant digits to 4, remove scientific notation (most of the time, scipen=999 removes all time)
options(digits = 4, scipen = 9)