Description Usage Arguments Details Value Examples
(ba) In this simplified version of new8alk, the user has no more than giving the name and the parents of the node and the regression coefficients. The distribution will be automatically put to 'normal' and the parameter 'mu' to the linear combinations of the parents.
1 | new8noralk(des, parent=character(0), coef=0:length(parent), sigma=1)
|
des |
either the name or a description ('ds' object). |
parent |
( |
coef |
coefficient to define mu. If there are two parents, then mu will be 'coef[1]+coef[2]*{{parent[1]}}+coef[3]*{{parent[2]}}'. |
sigma |
standard deviation. |
length(coef) must equals 1 + length(parent); sigma must be numeric.
an object of class "bn" with an additional node
1 2 | rebastaba3k("RESET"); # needed only for R checking, to be forgotten
print(new8noralk(char2des("some /alk/"), parent=c("A", "AA")));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.