Learn R Programming

expose (version 0.0.3)

naive_ace: Extract the information from the simulation data frame to analyse the naive causal effects

Description

Extract the information from the simulation data frame to analyse the naive causal effects

Usage

naive_ace(allsim, dataset, exposures, delta = c(0, 1), ic_dis = "IC",
  st)

Arguments

allsim

dataset with all simulations values

dataset

dataset with all variables

exposures

a vector with exposures

delta

a vector with two values

ic_dis

choose between ic (interval confidences) and dis (distribution)

st

summary table from general function

Value

a data frame with naive ace and confident intervals

Examples

Run this code
# NOT RUN {
data(expose_data)
data(simu)
data(gen)
delta=c(1,0)
Exposures<- c('Var1','Var2','Var3','Var4','Var5')
summary_table_lines <- gen[[2]]
ace.df.g <- naive_ace (allsim = simu[[1]], dataset = expose_data,
ic_dis = 'IC', st = summary_table_lines,
exposures = Exposures, delta = delta)
# }

Run the code above in your browser using DataLab