parameters: Extract Model Parameters

View source: R/utilities.R

parametersR Documentation

Extract Model Parameters

Description

parameters is a generic function which extracts parameters from mistr distribution objects.

Usage

parameters(O)

## S3 method for class 'standist'
parameters(O)

## S3 method for class 'trans_standist'
parameters(O)

## S3 method for class 'mixdist'
parameters(O)

## S3 method for class 'trans_mixdist'
parameters(O)

## S3 method for class 'compdist'
parameters(O)

## S3 method for class 'trans_compdist'
parameters(O)

## S3 method for class 'comp_fit'
parameters(O)

Arguments

O

an object for which the extraction of model parameters is meaningful.

Value

Vector (for standard distributions) or list (in the case of mixture/composite distribution) of parameters extracted from the object.

For a fitted object of class comp_fit returns vector of fitted parameters.

See Also

weights, breakpoints

Examples

N <- normdist(1, 3)
parameters(N)

C <- cauchydist()
M <- mixdist(N, C, weights = c(0.5, 0.5))
parameters(M)

mistr documentation built on March 7, 2023, 7:42 p.m.