pd_summary {spsurvey} | R Documentation |
Summary characteristics of a panel revisit design
Description
Panel revisit design characteristics are summarized: number of panels, number of time periods, total number of sample events for the revisit design, total number of sample events for each panel, total number of sample events for each time period and cumulative number of unique units sampled by time periods.
Usage
pd_summary(object, visitdsgn = NULL, ...)
Arguments
object |
Two-dimensional array from |
visitdsgn |
Two-dimensional array with same dimensions as |
... |
Additional arguments (S3 consistency) |
Details
The revisit panel design and the visit design (if present) are summarized. Summaries can be useful to know the effort required to complete the survey design. See the values returned for the summaries that are produced.
Value
List of six elements.
n_panel
number of panels in revisit design
n_period
number of time periods in revisit design
n_total
total number of sample events across all panels and all time periods, accounting for
visitdsgn
, that will be sampled in the revisit designn_periodunit
vector of the number of time periods a unit will be sampled in each panel
n_unitpnl
vector of the number of sample units, accounting for
visitdsgn
, that will be sampled in each paneln_unitperiod
vector of the number of sample units, accounting for
visitdsgn
, that will be sampled during each time periodncum_unit
vector of the cumulative number of unique units that will be sampled in time periods up to and including the current time period.
Author(s)
Tony Olsen Olsen.Tony@epa.gov
Examples
# Serially alternating panel revisit design summary
sa_dsgn <- revisit_dsgn(20, panels = list(SA60N = list(
n = 60, pnl_dsgn = c(1, 4),
pnl_n = NA, start_option = "None"
)), begin = 1)
pd_summary(sa_dsgn)
# Add visit design where first panel is sampled twice at every time period
sa_visit <- sa_dsgn
sa_visit[sa_visit > 0] <- 1
sa_visit[1, sa_visit[1, ] > 0] <- 2
pd_summary(sa_dsgn, sa_visit)