Description Usage Arguments Details Value Examples
General function create the basic structure for the analysis
1 | general_function(dataset, exposures, confounders, outcomes, delta, dr)
|
dataset |
dataset with all variables |
exposures |
a vector with exposures |
confounders |
a vector with confounders |
outcomes |
outcome´s name |
delta |
a vector with two values |
dr |
a vector with dose response values |
.
a list with 2 objects. One is the dataframe with all the values and the other is a summary of the groups and the corresponding rows in the first dataframe.
1 2 3 4 5 6 7 8 9 10 11 12 | data(expose_data)
N <- dim(expose_data)[1]
Outcome='Y4'
seku <- seq(0,1,0.05) #c(0,0.1,0.2,0.25,0.3,0.4,0.5,0.6,0.7,0.75,0.8,0.9,1)
our.num.sim <- 5
delta=c(1,0)
Exposures<- c('Var1','Var2','Var3','Var4','Var5')
Confounders<- c('sex')
Outcome <- c('Y4')
gen <- general_function (dataset = expose_data, exposures = Exposures,
confounders = Confounders,
outcomes = Outcome[1], delta=delta, dr = seku)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.