Description Usage Arguments Value Author(s) Examples
sAUC
is used to fit semiparametric AUC regression model specified by
giving a formula object of response and covariates and a separate argument of treatment
group. It will convert variables other than response into factors, estimate model parameters,
and display results.
1 |
formula |
A formula object with response and covariates such as |
treatment_group |
A treatment group for which a comparision is to be made |
data |
A dataframe that contains variables needed for the analysis. |
A list of model summary, coefficients, AUC details, and session information.
Som Bohora
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ds <- NULL
for (x1 in 0:1){
for (x2 in 0:2){
for (x3 in 0:2){
for (group in 0:1){
response <- round(rnorm(n = 100, mean = 0, sd = 1),4)
column <- cbind(x1,x2,x3, group, response)
ds <- as.data.frame(rbind(ds, column))
}
}
}
}
ds[,c("x1", "x2", "x3", "group")] <- lapply(ds[,c("x1", "x2", "x3", "group")],
function(x) factor(x))
sAUC(formula = response ~ x1 + x2 + x3, treatment_group = "group", data = ds)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.