# load data, e.g. the in-build mtcars dataset
data("mtcars")
data_oster <- mtcars
# preview of data
head(data_oster)
# load robomit
require(robomit)
# estimate and visualize bootstrapped delta*s
o_delta_boot_viz(y = "mpg", # dependent variable
x = "wt", # independent treatment variable
con = "hp + qsec", # related control variables
beta = 0, # beta
R2max = 0.9, # maximum R-square
sim = 100, # number of simulations
obs = 30, # draws per simulation
rep = FALSE, # bootstrapping with or without replacement
CI = c(90,95,99), # confidence intervals
type = "lm", # model type
norm = TRUE, # normal distribution
bin = 200, # number of bins
useed = 123, # seed
data = data_oster) # dataset
Run the code above in your browser using DataLab