Description Usage Arguments Details Value Author(s) Examples
Alternative ways of creating arrays
1 |
names |
Names of variables defining table; a character vector or a right hand sided formula. |
levels |
1) a list with specification of the levels of the
factors in |
values |
values to go into the parray |
normalize |
Either "none", "first" or "all". Should result be normalized, see 'Details' below. |
smooth |
Should values be smoothed, see 'Details' below. |
If normalize="first"
then for each configuration of
all other variables than the first, the probabilities are
normalized to sum to one. Thus f(a,b,c) becomes a conditional
probability table of the form p(a|b,c). If
normalize="all"
then the sum over all entries of
f(a,b,c) is one.
If smooth
is positive then
smooth
is added to values
before normalization
takes place.
An array.
Søren Højsgaard, sorenh@math.aau.dk
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.