Learn R Programming

fitdistcp (version 0.1.1)

dgev_p1sub: Densities for 5 predictions

Description

Densities for 5 predictions

Usage

dgev_p1sub(
  x,
  t,
  y,
  t0,
  ics,
  d1 = 0.01,
  d2 = 0.01,
  fd3 = 0.01,
  d4 = 0.01,
  minxi,
  maxxi,
  extramodels = FALSE,
  aderivs = TRUE
)

Value

A vector of parameter estimates, two pdf vectors, two cdf vectors

Arguments

x

a vector of training data values

t

a vector or matrix of predictors

y

a vector of values at which to calculate the density and distribution functions

t0

a single value of the predictor (specify either t0 or n0 but not both)

ics

initial conditions for the maximum likelihood search

d1

the delta used in the numerical derivatives with respect to the parameter

d2

the delta used in the numerical derivatives with respect to the parameter

fd3

the fractional delta used in the numerical derivatives with respect to the parameter

d4

the delta used in the numerical derivatives with respect to the parameter

minxi

minimum value of shape parameter xi

maxxi

maximum value of shape parameter xi

extramodels

logical that indicates whether to add three additional prediction models

aderivs

logical for whether to use analytic derivatives (instead of numerical)