fitactf: Fit the AutoCorrelation Transformation Function

Description Usage Arguments Examples

View source: R/acti.R

Description

Fits the ACTF (Autocorrelation Transformation Function) to the estimated points (ρ_x, ρ_z) using nls

Usage

1
fitactf(actpnts, discrete = FALSE)

Arguments

actpnts

estimated ACT points

discrete

logical - is the marginal distribution discrete?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(CoSMoS)

## choose the marginal distribution as Pareto type II
## with corresponding parameters
dist <- 'paretoII'
distarg <- list(scale = 1, shape = .3)

## estimate rho 'x' and 'z' points using ACTI
p <- actpnts(margdist = dist, margarg = distarg, p0 = 0)

## fit ACTF
fit <- fitactf(p)

## plot the result
plot(fit)

TycheLab/CoSMoS documentation built on Feb. 2, 2021, 3:49 p.m.