Description Usage Arguments Details Value Examples
Calculate the a
parameter in the conditional Hurdle density of the child node given the parents for one sample, assuming a
is linear in the parents and their indicators.
1 | sum_a(aa, vo, yo)
|
aa |
A numerical vector of length |
vo |
A numerical vector of the same length as |
yo |
A numerical vector, a sample for the parent nodes (regressors). |
Assuming aa = c(a1, a2, a3)
where a1
is a scalar, a2
and a3
, the function returns a1 + sum(a2*vo) + sum(a3*yo)
.
This is used for calculating the a
parameter of the conditional Hurdle density of the child node given the parent nodes, assuming the a
parameter is linear in the parents and their indicators.
A number, the mean log probability.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.