Description Usage Arguments Value Author(s) Examples
View source: R/cluster_discrete.R
Summarizes population-level statistics for cluster sample for attribute data. The calculations are derived from Chapter 3 in Avery and Burkhart's (1967) Forest Measurements, Fifth Edition. The variance terms refer to the variance of the mean.
1 2 | summarize_cluster_discrete(data, attribute, plotTot = NA,
desiredConfidence = 0.95)
|
data |
data frame containing observations of variable of interest. Attribute (variable of interest) must be the proportion alive in the associated plot. |
attribute |
character name of attribute to be summarized. |
plotTot |
numeric population size. Equivalent to the total number of possible plots in the population. |
desiredConfidence |
numeric desired confidence level (e.g. 0.9). |
data frame of stand-level statistics. Includes standard error and confidence interval.
Karin Wolken
1 2 3 4 5 6 7 8 9 | ## Not run:
data <- data.frame(plots = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
propAlive = c(0.75, 0.80, 0.80, 0.85, 0.70,
0.90, 0.70, 0.75, 0.80, 0.65))
attribute = 'propAlive'
plotTot = 250
desiredConfidence = 0.95
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.