Nhats {AutoWMM}R Documentation

Nhats

Description

Estimation helper function: Returns Nhat for each sample from the WMM (rather than the aggregate value given by the average, this calculates weights and applies the weighted sum to each of the samples)

Usage

Nhats(tree)

Arguments

tree

A makeTree object

Value

Returns a vector of root population size estimates from each sample run of the wmmTree function

Examples


 data(treeData1)
 tree <- makeTree(treeData1)
 Zhats <- wmmTree(tree, sample_length = 3)
 Nhats(tree)


[Package AutoWMM version 1.0.1 Index]