ast-methods: Methods for ast class

ast-methodsR Documentation

Methods for ast class

Description

Methods for ast S3 class

Usage

## S3 method for class 'ast'
summary(object, ...)

## S3 method for class 'ast'
moments(x, method = c("analytical", "numerical"), ...)

## S3 method for class 'ast'
print(x, ...)

## S3 method for class 'ast'
plot(x, type = NULL, dist = "ast", envelope = 0.95, ...)

Arguments

object

A AST fit object of class ast

...

additional arguments for the hist or plot function from graphics

x

A AST fit object of class ast

method

one of "numerical" and "analytical", calculating the moments using numerical integration / analytical formula

type

one of "density" or "qqplot"

dist

one of "norm" or "ast", the theoretical distribution used in QQplots

envelope

the confidence level used to construct the envelope

Details

should also add the empirical moments

Examples

pars <- c(0.12, 0.6, 0.6, 3, 5)
data <- rast(1000, pars = pars)

solver_control <- list(eval.max = 10^3, iter.max = 10^3)
fit <- astMLE(data, solver = 'nlminb', solver_control = solver_control)

summary(fit)
moments(fit)
plot(fit, 1)


dan9401/skewtDist documentation built on Jan. 6, 2025, 9:14 a.m.