
Validate a proposed creel survey design against sample size targets
Source:R/design-validator.R
validate_design.RdPre-season design check: runs creel_n_effort() and creel_n_cpue() per stratum and returns a pass/warn/fail status report.
Usage
validate_design(
N_h,
ybar_h,
s2_h,
n_proposed,
cv_target,
type = c("effort", "cpue"),
cv_catch = NULL,
cv_effort = NULL,
rho = 0
)Arguments
- N_h
Named numeric vector. Total available sampling days per stratum.
- ybar_h
Numeric vector (same length as N_h). Pilot mean effort per day per stratum.
- s2_h
Numeric vector (same length as N_h). Pilot variance of effort per stratum.
- n_proposed
Named integer vector (same length as N_h). Proposed sampling days per stratum.
- cv_target
Numeric scalar. Target CV for the effort estimate.
- type
Character. One of "effort" or "cpue". Default "effort".
- cv_catch
Numeric scalar. Required when type = "cpue".
- cv_effort
Numeric scalar. Required when type = "cpue".
- rho
Numeric scalar. Correlation between catch and effort. Default 0.
Value
A creel_design_report object (S3 list) with:
- $results
tibble with columns stratum, status, n_proposed, n_required, cv_actual, cv_target, message
- $passed
logical – TRUE if all strata status == "pass"
- $survey_type
character
See also
Other "Reporting & Diagnostics":
adjust_nonresponse(),
check_completeness(),
compare_variance(),
flag_outliers(),
season_summary(),
standardize_species(),
summarize_by_angler_type(),
summarize_by_day_type(),
summarize_by_method(),
summarize_by_species_sought(),
summarize_by_trip_length(),
summarize_cws_rates(),
summarize_hws_rates(),
summarize_length_freq(),
summarize_refusals(),
summarize_successful_parties(),
summarize_trips(),
summary.creel_estimates(),
validate_creel_data(),
validate_incomplete_trips(),
validation_report(),
write_estimates()