get.dist {stratifyR} | R Documentation |
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)
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>
[Package stratifyR version 1.0-3 Index]