Description Usage Arguments Details Value Examples
Calculate the b
parameter in the conditional Hurdle density of the child node given the parents for one sample, assuming b
is linear in the parents and their indicators.
1 |
bb |
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). |
minus_Y |
A logical, see details. |
Assuming bb = c(b1, b2, b3)
where b1
is a scalar, b2
and b3
, the function returns b1 + sum(b2*vo) - sum(b3*yo)
if minus_Y == TRUE
, otherwise b1 + sum(b2*vo) + sum(b3*yo)
.
This is used for calculating the a
parameter of the conditional Hurdle density of the child node given the parent nodes, assuming the b
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.