summarize_simple_random_discrete: Summarize simple random sample for discrete attributes

Description Usage Arguments Value Author(s) Examples

View source: R/srs_discrete.R

Description

Summarizes population-level statistics for simple random 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.

Usage

1
2
summarize_simple_random_discrete(data, attribute = "attr", popTot = NA,
  desiredConfidence = 0.95)

Arguments

data

data frame containing observations of variable of interest. Attribute must be coded as either TRUE and FALSE or 1 and 0.

attribute

character name of attribute to be summarized.

popTot

numeric population size. Equivalent to total number of individuals.

desiredConfidence

numeric desired confidence level (e.g. 0.9).

Value

data frame of stand-level statistics. Includes standard error and 95

Author(s)

Karin Wolken

Examples

1
2
3
4
5
6
7
## Not run: 
data <- data.frame(alive = c(T, T, F, T, F, F),
  tree = c(1, 2, 3, 4, 5, 6))
attribute = 'alive'
popTot = 50

## End(Not run)

SilviaTerra/forestsamplr documentation built on Jan. 3, 2020, 2:33 p.m.