Description Usage Arguments Value Author(s) References See Also Examples
The function estimates bounds for causal interaction.
1 2 3 |
data |
A string as file name for the input data, or an R data frame giving the data. |
response |
A string that tells the name of the response variable in the data. Default value is "response". The corresponding column of this variable needs to be coded as 0 and 1 numeric values. |
factor1 |
A string that tells the name of the first exposure variable in the data. Default value is
"exposure1". The corresponding column of this variable needs to be factors. See |
factor2 |
A string that tells the name of the second exposure variable in the data. Default value is
"exposure2". The corresponding column of this variable needs to be factors. See |
covariates |
A vector of strings that give the names of the covariates in the data. |
population.prevalence |
A numeric value that gives the population prevalence of response incidence.
If |
monotonicity |
Logical. If |
bootstrap |
Optional. The number of bootstrap replicates. If missing, then no estimated standard errors are returned. |
cc |
Logical. Specify |
The function returns returns a 4 × 5 matrix. The upper two elements in first column contain
the estimated bounds on the proportion of individuals that the causal interaction exists, named as lower and upper,
respectively. The lower two elements in the first column contain the estimated bounds on
the proportion of effects that is due to interaction, named as p.lower and p.upper, respectively, which are calculated when monotonicity = TRUE
.
If bootstrap
is specified, then the second column contains the bootstrap standard errors for the estimates,
and the third and fourth columns contain the lower and upper limits of the 95
The last column contains the p-values from Wald test.
Arvid Sjolander, Xia Shen
Sjolander A, Lee W, Kallberg H, Pawitan Y. (2014). Bounds on causal interactions for binary outcomes. Biometrics 70(3), 500-505.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.