Learn R Programming

extRemes (version 2.0-12)

strip: Strip Fitted EVD Object of Everything but the Parameter Estimates

Description

Take any fevd object, regardless of estimation method, and return only a vector of the estimated parameters.

Usage

strip(x, use.names = TRUE, ...)
# S3 method for fevd
strip(x, use.names = TRUE, ...)

Arguments

x

An object of class “fevd”.

use.names

logical stating whether or not to keep the names attribute

For the Bayesian method, if an alternative function to taking the mean or posterior mode of the MCMC samples is used, then optional arguments may be passed. Otherwise, not used.

Value

numeric vector with the parameter estimates.

Details

This function is very similar to distill, but returns less information.

See Also

distill.fevd

Examples

Run this code
# NOT RUN {
z <- revd(100, loc=20, scale=0.5, shape=-0.2)
fit <- fevd(z)
fit

strip( fit )
strip( fit, use.names = FALSE )

# Compare with ...
distill( fit )
distill( fit, cov = FALSE )

# }
# NOT RUN {
data( "Fort" )
fit <- fevd(Prec, Fort, threshold=0.395,
    scale.fun=~sin(2 * pi * (year - 1900)/365.25) + 
        cos(2 * pi * (year - 1900)/365.25),
    type="PP", method="Bayesian", iter=1999, use.phi=TRUE, verbose=TRUE)

fit

strip( fit )
strip( fit, burn.in = 700 )
strip( fit, FUN = "postmode" )

# }

Run the code above in your browser using DataLab