Learn R Programming

stratifyR (version 1.0-3)

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

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

get.dist(data, my_env)

Value

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

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

Author

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