sAUC: Fitting semiparametric AUC regression model adjusting for...

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
sAUC(formula = FALSE, treatment_group = FALSE, data = FALSE)

Arguments

formula

A formula object with response and covariates such as response ~ x1 + x2

treatment_group

A treatment group for which a comparision is to be made

data

A dataframe that contains variables needed for the analysis.

Value

A list of model summary, coefficients, AUC details, and session information.

Author(s)

Som Bohora

Examples

 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)

sbohora/sAUC documentation built on May 29, 2019, 3:23 p.m.