Learn R Programming

stratifyR (version 1.0-3)

distr.root: Calculate the objective function values

Description

This function is called within other important functions in the package to calculate the objective function values at systematic incremental progressions of stratum width and range of the data

Usage

distr.root(d, y, c, my_env)

Value

returns the value of the objective function

Arguments

d

A numeric: distance or range of data

y

A numeric: stratum width

c

A numeric: stratum cost

my_env

My environment my_env contains the constants and outputs from various calculations carried out by other key functions

Author

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