Description Usage Arguments Details Value See Also Examples
This function uses the data stored in the 'pars.survey.pt´ object to create a point transect sample object.
1 | generate.sample.pt(pars.survey.pt, seed = NULL)
|
pars.survey.pt |
object returned by the function |
seed |
number passed to set.seed() to initialise random number generator |
A point transect method sample object is generated by simulating a point transect survey of the population specified in
generate.sample.pt
. The function setpars.survey.pt
must have been run to create a ‘pars.survey.pt’ object, which contains the survey
specifations.
generate.sample.pt
returns an object of class 'sample.pt´ which has the following elements:
population |
object of class 'population´. |
design |
object of class 'design.pt´. |
detected |
vector indicating which animal groups have been detected. |
distance |
vector of perpendicular distances of animal groups inside the survey units from the respective transect paths. |
transect |
vector of transect path numbers of detectable animal groups. |
setpars.survey.pt
, summary.sample.pt
, plot.sample.pt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | pt.reg <- generate.region(x.length = 100, y.width = 50)
pt.dens <- generate.density(pt.reg)
#heterogeneous population
pt.poppars<-setpars.population(density.pop = pt.dens, number.groups = 1000, size.method = "poisson",
size.min = 1, size.max = 30, size.mean = 10, exposure.method = "beta",
exposure.min = 0, exposure.max = 1, exposure.mean = 0.4,
exposure.shape = 0.5, type.values=c("Male","Female"),
type.prob=c(0.48,0.52))
pt.pop<-generate.population(pt.poppars)
pt.despars<-setpars.design.pt(pt.reg, n.transects=8, n.units=32, visual.range=3.5)
pt.des<-generate.design.pt(pt.despars)
pt.survpars<-setpars.survey.pt(pt.pop, pt.des, disthalf.min=2, disthalf.max=4)
pt.samp<-generate.sample.pt(pt.survpars)
summary(pt.samp)
plot(pt.samp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.