monteStatsBB {ssExtra}R Documentation

Calculate Point-wise Statistics for Big BAF Sampling

Description

This routine will calculate the simple point-wise statistics (mean, var, var of the mean, etc.) on the individual sample draws from each of the four sampling surfaces that can occur in big BAF sampling (see, e.g., "ssBigBAF").

Usage

monteStatsBB(sdx = NA,
             ssBB,
             runQuiet = TRUE,
             ...)

Arguments

sdx

A vector of the cell numbers in the sample for a given Monte Carlo draw.

ssBB

An object of class “ssBigBAF”.

runQuiet

TRUE: run without any feedback; FALSE: some feedback desired.

...

Just gobbled for now.

Details

This routine is meant to be called from within monte in the Monte Carlo sampling for construction of “monteBigBAF” objects. However, given a sample of points (actually raster cells) from the sampling surfaces, one can call this routine directly to calculate sampling statistics over all points in the sample. For example, each “monteBigBAF” object contains all of the sample replicate draws in the mc.samples slot, so one could pass the ith such draw to this routine as desired.

Value

A list with...

samples

A data frame with the point/cell-based sample (total) values for the main attribute from each sampling surface.

stats.ct

A data frame of statistics for the count surfaces.

stats.bb

A data frame of statistics for the big BAF surfaces.

Author(s)

Jeffrey H. Gove

See Also

monteTreeStatsBB

Examples

#
# if nhAll310.mc is an object of class "monteBigBAF"
# and nhAll310.bb is the corresponding "ssBigBAF" object
# then the following retrieves the first sample of
# size n=10, and the associated sample statistics...
#
## Not run: 
ns = nhAll310.mc@mc.samples$n.10$mc.1
stats = monteStatsBB(ns, nhAll310.bb)

## End(Not run)

[Package ssExtra version 0.1-2 Index]