mergeRBMs: Merge rule-based models

Description Usage Arguments Value Author(s) Examples

View source: R/mergeRBMs.R

Description

Combines rule-based models into one model.

Usage

1
mergeRBMs(rbms, defClass=autcon$decision, fun="mean", pAdjust = TRUE, pAdjustMethod = "bonferroni")

Arguments

rbms

A list of rule-based models in a strucutre of the main rosetta output.

defClass

A character vector containing the outcome values.

fun

A character. Define the function of merging rule statistic. Choose between "mean" or "sum". The default is "mean".

pAdjust

Logical. Set TRUE to apply rule p-value and relative risk p-value adjustment. Default is TRUE.

pAdjustMethod

A character containing the name of the method: holm, hochberg, hommel, bonferroni, BH, BY, fdr or none. Default is bonferroni.

Value

data frame

Data frame of combined rules and their values.

Author(s)

Mateusz Garbulowski

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(R.ROSETTA)

out1 <- rosetta(autcon, seed=1)
rbm1 <- out1$main

out2 <- rosetta(autcon, seed=2)
rbm2 <- out2$main

out3 <- rosetta(autcon, seed=3)
rbm3 <- out3$main

rbms <- list(rbm1, rbm2, rbm3)

#combine models
nrls <- mergeRBMs(rbms, fun = "mean", defClass = autcon$decision)

mategarb/R.ROSETTA documentation built on April 2, 2021, 12:28 a.m.