get.dist: To identify the best-fit distribution of a univariate data

Description Usage Arguments Value Author(s)

View source: R/get.dist.R

Description

This function is called at the start of the stratification process where the best-fit distribution and it parameters are estimated and returned for further processing towards the computation of stratum boundaries. It basically takes in the data and fits it with a list of 10 possible distributions and computes the parameters for all given distributions. It selects the best-fit distribution to be the one with the lowest AIC

Usage

1
get.dist(data, my_env)

Arguments

data

A vector: usually a column in a given data frame

my_env

My environment my_env has various constants and data that are used by the get.dist() function

Value

returns a list which contains the best-fit distribution and its estimated parameters

Author(s)

Karuna Reddy <karuna.reddy@usp.ac.fj>
MGM Khan <khan_mg@usp.ac.fj>


stratifyR documentation built on Dec. 11, 2021, 9:25 a.m.