Description Usage Arguments Value References Examples
Estimate standardized mortality risks
1 2 3 |
patientCovariates |
data frame of patient-specific covariates |
center |
center code (n values for n patients) |
Y |
binary outcome |
method |
method of standardization; one of 'indirect' (default) or 'direct' |
Firth |
logical apply Firth correction? default value TRUE |
alpha |
statistical significance level; default value is 0.05 |
missing |
how to handle missing categorical data? one of 'completeCase' (default) or 'dummyCategory'; when 'dummyCategory' is chosen a separate category is added to model a missing value effect |
trace |
logical print summary of fitted model? default value FALSE |
object of class 'standardizedRisks'; data frame with columns centerName, centerSize, standardizedRisk, varStandardizedRisk, lowerCI, upperCI and observedRisk
Varewyck M., Goetghebeur E., Eriksson M. and Vansteelandt S. (2014), On shrinkage and model extrapolation in the evaluation of clinical center performance, Biostatistics, 15(4), p. 651–664
1 2 3 4 | set.seed(130513)
simulatedData <- simulateData()
standardizedRisks <- with(simulatedData, standardizeRisks(patientCovariates = L, center = center, Y = Y))
head(standardizedRisks)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.