Description Usage Arguments Details Value Note References See Also Examples

Fit categorical distributions, from data.

NOTE THAT THESE OBJECTS ARE LIKELY TO BE CONVERTED TO S4 OBJECTS, IN THE NEAR FUTURE.

ALSO, NOTE THAT THEIR INTERNAL STRUCTURE (THAT IS, THEIR ATTRIBUTES/SLOTS), IS SUBJECT TO CHANGE.

IN PRINCIPLE, YOU SHOULD NOT ACCESS ATTRIBUTES/SLOTS, DIRECTLY.

1 2 3 4 5 6 7 8 9 | ```
#univariate
pmfuv.cat (g, h=1)
cdfuv.cat (g, h=1)
qfuv.cat (g, h=1)
#conditional
pmfc.cat (g, h=1, ..., conditions, warning=TRUE)
cdfc.cat (g, h=1, ..., conditions, warning=TRUE)
qfc.cat (g, h=1, ..., conditions, warning=TRUE)
``` |

`g` |
Integer/factor/character vector of groups. |

`h` |
Optional numeric vector of frequencies (or weights). |

`conditions` |
An integer vector of category indices, a character vector of category names, or a list which can contain either integers (indices) or strings (names). |

`warning` |
Logical, if true, generate warning if there's no observations within the conditional window. |

`...` |
Additional arguments not allowed. |

PLEASE SET NOTES IN DESCRIPTION FIELD.

Refer to the vignette for more information.

Default variable names are generated, if the g list is unnamed.

(In conditional models, a warning is generated).

Self-referencing function objects.

Refer to Runtime Function Objects

Except:

The constructors for conditional distributions, return NULL, if there's no observations within the conditional window.

(And by default, generate a warning).

WARNING:

If a categorical distribution is constructed from integers, the category indices won't necessarily equal the category names. e.g. If unique g values were 10, 11 and 12, in contrast to 1, 2 and 3.

Refer to the vignette for an overview, references and better examples.

Succinct Constructors

Discrete Kernel Smoothing, Continuous Kernel Smoothing, Empirical-Like Distributions

Conditional Distributions with Mixed Input Types

These can be used for statistical classification purposes.

is.cat, ph.printf.phmodel, ph.plotf.catuv

1 2 3 4 5 6 7 8 9 10 11 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.