monteStatsBB {ssExtra} | R Documentation |
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
").
monteStatsBB(sdx = NA, ssBB, runQuiet = TRUE, ...)
sdx |
A vector of the cell numbers in the sample for a given Monte Carlo draw. |
ssBB |
An object of class “ |
runQuiet |
|
... |
Just gobbled for now. |
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.
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. |
Jeffrey H. Gove
# # 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)