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
get.dist(data, my_env)
returns a list which contains the best-fit distribution and
its estimated parameters
A vector: usually a column in a given data frame
My environment my_env has various constants and data that are used by the get.dist() function
Karuna Reddy <karuna.reddy@usp.ac.fj>
MGM Khan <khan_mg@usp.ac.fj>