Learn R Programming

expose (version 0.0.3)

interact: Extract the information from the simulation data frame to analyse the interaction effects

Description

Extract the information from the simulation data frame to analyse the interaction effects

Usage

interact(allsim, dataset, exposures, confounders, squem)

Arguments

allsim

dataset with all simulations values

dataset

dataset with all variables

exposures

a vector with exposures

confounders

a vector with confounders

squem

squeme of the values of the prediction values

Value

data frame with interaction values

Examples

Run this code
# NOT RUN {
data(expose_data)
data(simu)
data(gen)
delta=c(1,0)
seku <- seq(0,1,0.05)
Exposures<- c('Var1','Var2','Var3','Var4','Var5')
summary_table_lines <- gen[[2]]
it <- interact (allsim = simu[[1]], dataset = expose_data,exposures = Exposures,
confounders = c('sex'), squem = summary_table_lines)
# }

Run the code above in your browser using DataLab