surveyEfficPlot: surveyEfficPlot

View source: R/surveyEfficPlot.r

surveyEfficPlotR Documentation

surveyEfficPlot

Description

uses the output of nefsc.analysis or dfo.rv.analysis where strata.efficiencies=T, to make a plot of the variance efficiencies based on the comparison of stratified random design to a simple random survey design. Based on Smith and Gavaris 1993.

Usage

surveyEfficPlot(x, fp = project.figuredirectory("bio.lobster"), fname)

Arguments

x

:the output file from nefsc.analysis or dfo.rv.analysis where p$strata.efficiencies=T

fp

: file path for saving

fn

: file name, needs to include .pdf as this is currently only setup to make pdf files.

Value

makes a plot of survey efficiencies

Author(s)

Adam Cook, Adam.Cook@dfo-mpo.gc.ca

Examples

require(bio.lobster)
p$reweight.strata = T #this subsets 
p$years.to.estimate = c(1968:2015)
p$length.based = T
p$size.class= c(82,300)
p$by.sex = T
p$sex = c(1,2) # male female berried c(1,2,3)
p$bootstrapped.ci=T
p$strata.files.return=F
p$strata.efficiencies=T
p$clusters = c( rep( "localhost", 7) )
p$season =c('spring')# p$series =c('spring');p$series =c('fall')
p$define.by.polygons = F
p$lobster.subunits=F
p$area = 'LFA41'
p = make.list(list(yrs=p$years.to.estimate),Y=p)
aout= nefsc.analysis(DS='stratified.estimates.redo',p=p)
	surveyEfficPlot(aout,'nefscSpringLFA41.pdf')

LobsterScience/bio.lobster documentation built on Feb. 14, 2025, 3:28 p.m.