View source: R/f06.nbnst.code.r
estimate8constrainednbn | R Documentation |
Estimations of the parameters of a /nbn/ is done when there are some
equality constraints onto the regression coefficients.
Constant
terms (mu
) and conditional standard deviations (sigma
)
are supposed independent (that is not constrained with
equalities).
Equality constraints are given by sarc
, a list
of matrices with two columns, indicating each the series of arcs
having the same regression coefficient.
estimate8constrainednbn(nbn, sarc, data, imp=0, nite=10, eps=10^-5)
nbn |
|
sarc |
List of Matrices with two columns indicating the tails
(1rst column) and the heads (2d column) of the arcs having a common
parameter. It is checked that these arcs are indeed included in
|
data |
Data frame to be used for the estimation. It must
comprise all necessary nodes (not only those involved in |
imp |
When |
nite |
Maximum number of iterations. |
eps |
relative difference in successive scores needed to stop the iterations. |
Not linked regression coefficients doesn't require to be included in
sarc
, the function do it by itself.
The score to use to
measure the differences between two successive estimations is not
well established (see the code).
The resulting /nbn/ object with the estimated parameters.
data(boco);
print8nbn(rbmn0nbn.05);
print8nbn(estimate8nbn(rbmn0nbn.05, boco));
print8nbn(estimate8constrainednbn(rbmn0nbn.05, rbmn0crarc.05, boco));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.