Learn R Programming

EnviroPRA2 (version 1.0.1)

extr_par: Extracts the fitted distribution parameters to be introduced in other function

Description

Auxiliar function for internal use only

Usage

extr_par(x, dist)

Value

A list of fitted parameters.

Arguments

x

List of parameters obtained by the aplication of the Fit_dist_parameter function

dist

Name of the distribution we would like to stract the parameters ("norm", "lnorm", "geom", "exp", "pois", "gamma", "cauchy", "logis", "weibull", "nbinom", "beta", "chisq", "t", "f")

Author

F. Barrio-Parra

Examples

Run this code
a <- rnorm(n=100, mean =10, sd = 1) 

b <- Fit_dist_parameter(a)

extr_par(x = b, dist ="norm")

Run the code above in your browser using DataLab