est_portion: Estimate the portion of a total.

View source: R/est_portion.R

est_portionR Documentation

Estimate the portion of a total.

Description

Portion a total number \(i.e. escapement or abundance\) into its parts using estimated proportions. est_portion will return the estimated portion and the associated precision of each estimate. Currently the portions are calculated assuming independence of the proportions. In the future this function should be calcuated using a multinomial distribtion.

Usage

est_portion(N, SE_N, phat, SE_phat, alpha = 0.05)

Arguments

N

total escapement or abundance

SE_N

standard error of N

phat

vector of probabilities

SE_phat

vector of standard errors for probabilities

alpha

type I error rate. Default is set at 0.05 to produce 95 confidence intervals.

Author(s)

Ryan N. Kinzer

Examples

Nhat = 1000
SE_N = 50
phat = c(.2,.5,.3)
SE_phat = c(.01,.03,.01)
est_portion(N, SE_N, phat, SE_phat)


ryankinzer/cuyem documentation built on April 20, 2024, 2:10 p.m.