View source: R/bystrataCoreFuns.R
ratediffbystrata | R Documentation |
Estimates risk difference and significance within each formed strata
ratediffbystrata(yy, arm, treeStrata, treetype = "final",
termNodes = NULL, alternative = "two.sided", cilevel = 0.05,
verbose = 0, plot = TRUE)
yy |
Case control status response vector |
arm |
Treatment indicator, 1 = test treatment, 0 = control |
treeStrata |
Vector of strata membership, as defined by ctree strata |
treetype |
String, whether trees input are "preliminary" or "final" |
termNodes |
Vector of names for each tree strata formed (e.g., number of strata or covariate definition) |
alternative |
For tests, whether alternative hypothesis is "less", "greater", or "two.sided" (default = "two.sided") |
cilevel |
Confidence level alpha for overall result and confidence intervals |
verbose |
Numeric variable indicating amount of information to print to the terminal (0 = nothing, 1 = notes only, 2 = notes and intermediate output) |
plot |
Logical, whether to create risk difference forest plots |
fitsummary: summary of risk difference within each strata
table: Summary of amalgamated risk difference estimate, variance, p-value, and cilevelx100% confidence interval assuming sample size weights
weights: Sample size weights used to construct estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.