Learn R Programming

CoSMoS (version 2.2.0)

fitactf: Fit the AutoCorrelation Transformation Function

Description

Fits the ACTF to the estimated (rho_x, rho_z) points using nls.

Usage

fitactf(actpnts, discrete = FALSE)

Value

An object of class "acti" with components:

actfcoef

fitted ACTF coefficients b and c

actfpoints

the input ACT points data frame

Arguments

actpnts

estimated ACT points (output of actpnts)

discrete

logical — is the marginal distribution discrete?

See Also

actpnts, actf

Examples

Run this code

library(CoSMoS)

p   <- actpnts(margdist = "paretoII",
               margarg  = list(scale = 1, shape = .3),
               p0 = 0)
fit <- fitactf(p)
plot(fit)

Run the code above in your browser using DataLab