Multinom {estimators}R Documentation

Multinomial Distribution

Description

Multinomial Distribution

Usage

Multinom(size = 1, prob = c(0.5, 0.5))

## S4 method for signature 'Multinom'
d(x)

## S4 method for signature 'Multinom'
r(x)

## S4 method for signature 'Multinom'
mean(x)

## S4 method for signature 'Multinom'
var(x)

## S4 method for signature 'Multinom'
finf(x)

## S4 method for signature 'matrix,numeric,Multinom'
ll(x, prm, distr)

## S4 method for signature 'matrix,Multinom'
mle(x, distr)

## S4 method for signature 'matrix,Multinom'
me(x, distr)

## S4 method for signature 'Multinom'
avar_mle(distr)

## S4 method for signature 'Multinom'
avar_me(distr)

Arguments

size, prob

numeric. The distribution parameters.

x

an object of class Multinom. If the function also has a distr argument, x is a numeric vector, a sample of observations.

prm

numeric. A vector including the distribution parameters.

distr

an object of class Multinom.

Value

The dpqr family of functions return the evaluated density, cumulative probability, quantile, and random sample, respectively. The moments family of functions return the appropriate theoretical moment, as calculated by the distribution true parameters. The ll function returns the evaluated log-likelihood, given a sample and the theoretical parameters. The estim family of functions return the estimated parameters of the distribution, given a sample. The avar family of functions return the asymptotic variance or variance - covariance matrix (if there are two or more parameters) of the corresponding estimation method. Calculus performed on Distribution objects returns a Distribution object of the appropriate class and with the appropriate parameters.


[Package estimators version 0.8.5 Index]