This function determine the bumber of levels of hierarchical randomization for a GRTS survey design.
numLevels(samplesize, shift.grid, startlev, maxlev, sfobject)
The desired smaple size.
Logical value indicating whether the GRTS grid should be randomly shifted.
The initial number of levels for the GRTS grid.
The maximum number of levels for the GRTS grid.
The sf object containing the survey frame.
A list containing the number of levels, x-coordinates, y-coordinates, x-axis grid cell dimension, y-axis grid cell dimension, cell total weights, and sampling interval.
cellWeight
calculates total inclusion probability for each cell in a grid