Learn R Programming

lmomco (version 0.6)

vec2par: Convert a Vector of Parameters to a Parameter Object of a Distribution

Description

This function converts the L-moments of the data to the parameters of a distribution. The type of distribution is specified in the argument list: cau, exp, gam, gev, glo, gno, gpa, gum, kap, nor, pe3, and wak.

Usage

vec2par(vec, type, nowarn=FALSE, ...)

Arguments

vec
A vector of parameter values for the distribution specified by type.
type
Three character distribution type (for example, type='gev').
nowarn
A logical switch on warning surpression. If TRUE then options(warn=-1) is made and restored on return. This switch is to permit calls in which warnings are not desired as the user knows how to handle the returned value---say in a
...
Additional arguments for the are.par.valid call that is made internally.

Value

  • An R list is returned.
  • typeThe type of distribution in three character format.
  • paraThe parameters of the distribution.
  • sourceAttribution specifying source of the parametes---vec2par.

See Also

lmom2par

Examples

Run this code
para <- vec2par(c(12,123,0.5),'gev')
Q <- quagev(0.5,para)

Run the code above in your browser using DataLab