est_pwmcov: Estimate the covariance matrix of PWM estimations

Description Usage Arguments Value Examples

View source: R/est_pwmcov.R

Description

Internal function. Use est_cov. Description not done yet.

Usage

1
2
3
4
5
6
7
est_pwmcov(x, order = 0:3, distr = NULL, distr.trim = c(0, 0))

## S3 method for class 'numeric'
est_pwmcov(x, order = 0:3, distr = NULL, distr.trim = c(0, 0))

## S3 method for class 'matrix'
est_pwmcov(x, order = 0:3, distr = NULL, distr.trim = c(0, 0))

Arguments

x

numeric vector or matrix of data.

order

numeric vector giving the orders that are returned.

distr

character of length 1 which indicates a distribution if a parametric assumption should be used.

distr.trim

integer vector of length 2 indicating the trimming used to calculate parameters if a parametric assumption is used (i.e. distr is set).

Value

numeric matrix

Examples

1
2
3
4
5
6
7
8
9
### Numeric vectors
x <- rgev(500, shape = .2)
est_pwmcov(x)
est_pwmcov(x, distr = "gev")

### Numeric matrices
x <- matrix(rgev(600, shape = .2), nc = 3)
est_pwmcov(x, order = 0:2)
est_pwmcov(x, order = 0:2, distr = "gev")

TLMoments documentation built on Dec. 4, 2019, 5:06 p.m.