Nhats {AutoWMM} | R Documentation |
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)
Nhats(tree)
tree |
A makeTree object |
Returns a vector of root population size estimates from each sample run of the wmmTree function
data(treeData1)
tree <- makeTree(treeData1)
Zhats <- wmmTree(tree, sample_length = 3)
Nhats(tree)