Description Usage Arguments Value Examples
Calculates BIC for the given network and data frame.
1 | BICcovar(nw, dataset)
|
nw |
|
dataset |
data frame with attributes given as 'covs' attribute |
real number
1 2 3 4 5 6 7 8 9 | data(Gm17403)
data <- Gm17403[,5:7]
covs <- list(Sex = cbind(as.numeric(Gm17403$sex=="M")),
Diet = cbind(as.numeric(Gm17403$diet=="HF")),
Batch = cbind(as.numeric(Gm17403$batch==1)))
attr(data, "covs") <- covs
nw.start <- empty.network(c(names(attr(data, "covs")), names(data)))
BICcovar(nw.start, data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.