Description Usage Arguments Value Author(s) References See Also Examples
Makes predictions (either as the most likely state or as the conditional distributions) of variables conditional on finding (evidence) on other variables in an independence network.
1 2 3 4 5 6 7 8 9 |
object |
A grain object |
response |
A vector of response variables to make predictions on |
predictors |
A vector of predictor variables to make predictions from. Defaults to all variables that are note responses. |
newdata |
A data frame |
type |
If "class", the most probable class is returned; if "distribution" the conditional distrubtion is returned. |
... |
Not used |
A list with components
pred |
A list with the predictions |
pFinding |
A vector with the probability of the finding (evidence) on which the prediction is based |
Søren Højsgaard, sorenh@math.aau.dk
Søren Højsgaard (2012). Graphical Independence Networks with the gRain Package for R. Journal of Statistical Software, 46(10), 1-26. http://www.jstatsoft.org/v46/i10/.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.