Learn R Programming

fitdistcp (version 0.1.1)

dpareto_p1k2sub: Densities from MLE and RHP

Description

Densities from MLE and RHP

Usage

dpareto_p1k2sub(x, t, y, t0, d1, d2, kscale, aderivs = TRUE, debug = FALSE)

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)

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

kscale

the known scale parameter

aderivs

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

debug

debug flag