Learn R Programming

sampSurf (version 0.7-6)

monte: Generate Objects of Class "'>monte"

Description

This is the generic definition for generating objects of class "monte." There are currently several methods corresponding to this generic whose documentation may be found in monte-methods.

Usage

monte(object, ...)

Arguments

object

Signature argument, which differs for each method. This specifies the population from which samples will be drawn.

See methods.

Value

A valid object of class "'>monte."

Details

The methods associated with this generic should be used to construct objects of class "'>monte." These objects are specifically designed to hold information about Monte Carlo experiments where one resamples from a known population to infer efficiency and perhaps locate any bias in different sampling estimators. The constructor methods can be used to look at traditional normal theory and bootstrap confidence intervals in terms of nominal catch rates for the population mean.

References

The ‘“monte”: When is n Sufficiently Large?’ vignette.

See Also

'>monte, '>monteSample

Examples

Run this code
# NOT RUN {
#
# these examples are commented-out because they consume 
# cpu time when checking the package--just copy and paste
# them if you want to try them out...
#
# from a sampSurf object...
#
# }
# NOT RUN {
smTract = Tract(c(x=30,y=30), cellSize=0.5)
smbuffTr = bufferedTract(8,smTract)
ss.sa = sampSurf(10, smbuffTr, 'sausageIZ', plotRadius=3, estimate='Length')
m.sa = monte(ss.sa, n=c(10,20))
hist(m.sa)
# }
# NOT RUN {
#
# simple population...
#
# }
# NOT RUN {
mp = montePop(rnorm(100), n=c(10,30))
mt = monte(mp, mcSamples=250, R=150)     #takes n from mp object
mt
# }

Run the code above in your browser using DataLab