numLevels: Determine the Number of Levels for Hierarchical Randomization...

Description Usage Arguments Value Other Functions Required Author(s)

View source: R/numLevels.R

Description

This function determine the bumber of levels of hierarchical randomization for a GRTS survey design.

Usage

1
numLevels(samplesize, shift.grid, startlev, maxlev, sfobject)

Arguments

samplesize

The desired smaple size.

shift.grid

Logical value indicating whether the GRTS grid should be randomly shifted.

startlev

The initial number of levels for the GRTS grid.

maxlev

The maximum number of levels for the GRTS grid.

sfobject

The sf object containing the survey frame.

Value

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.

Other Functions Required

cellWeight

calculates total inclusion probability for each cell in a grid

Author(s)

Tom Kincaid Kincaid.Tom@epa.gov


mhweber/spsurvey documentation built on Sept. 17, 2020, 4:24 a.m.