propfit: Fit Proportions.

Description Usage Arguments Details

View source: R/propfit.R

Description

Maximum likelihood estimation of Dirichlet parameter.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
propfit(
  y,
  x = NULL,
  start = NULL,
  weights = NULL,
  offset = NULL,
  ...,
  estfun = FALSE,
  object = FALSE
)

Arguments

y

A matrix or data.frame where each row corresponds to a k-dim observation.

x

Not used.

start

Not used.

weights

Not used yet.

offset

Not used.

...

Not used yet.

estfun

logical. Should the matrix of score contributions (estimating functions) be returned.

object

logical. Should the return from 'optim()' be returned.

Details

Perform MLE of parameters of a Dirichlet distribution. Interface and return value are designed to fit the modelparty infrastructure of the partykit package. ML estimates are found numerically using 'optim' with BFGS algorithm.


meteosimon/proptree documentation built on Feb. 6, 2020, 4:45 a.m.