suff_stat: Compute the sufficient statistics of a distribution from data

View source: R/methods.R

suff_statR Documentation

Compute the sufficient statistics of a distribution from data

Description

Generic function for computing the sufficient statistics of a distribution based on empirical data.

Usage

suff_stat(d, x, ...)

Arguments

d

An object. The package provides methods for distribution objects such as those from Normal() or Binomial() etc.

x

A vector of data to compute the likelihood.

...

Arguments passed to methods. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.

Value

a named list of sufficient statistics

Examples

X <- Normal()
suff_stat(X, c(-1, 0, 0, 0, 3))

distributions3 documentation built on Sept. 30, 2024, 9:37 a.m.