Description Usage Arguments Details Value Author(s) Examples
A function to perform stepwise backward selection to minimize AIC or BIC.
1 |
G |
A gRapHD object, the initial model. |
dataset |
A dataframe, whose variables correspond to the nodes of G. |
fixed.edges |
A boolean vector of length nrow(G@edges). Edges that are TRUE are not removed from the model. |
stat |
The measure to be minimized, either "BIC" (default) or "AIC". |
Performs backward stepwise selection. The initial model must be decomposable. Only edges preserving decomposability are eligible for removal. At each step, the edge resulting in the greatest reduction in BIC (or AIC) is removed. A pure graphical model (i.e. either discrete or continuous) is decomposable iff its graph is triangulated. A mixed graphical models (i.e., with both discrete and continuous variables) is decomposable iff its graph is triangulated and contains no forbidden paths.
A gRapHD object.
David Edwards (David.Edwards@agrsci.dk)
1 2 3 4 5 |
Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Attaching package: 'gRapHD'
The following object is masked from 'package:graph':
DFS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.