pareto.Rdpareto(strata,current_cvs,target_size,tolerance,cv_caps,t0,inactive_cv,
min_cv,eps_inact,bracket_fac,max_iter,max_same_iter,minnumstrat,
beat1cv_fun,verbose,plot,plot_dir,plot_prefix,save_pdf,show_targets,
show_caps,plot_convergence)Data frame with strata information
Data frame with initial CV targets per domain.
Desired total sample size.
Allowed shortfall from target_size (scalar, >= 0).
Optional data frame with columns DOM, VAR, MAX_CV to cap CVs by domain/variable. VAR can be V#, CV#, or integer index.
Initial scaling factor for CV targets.
CV values >= inactive_cv are treated as inactive targets.
Lower bound for active CV targets after scaling.
Multiplicative step used to expand the bracketing interval.
Maximum bisection iterations.
Stop bracketing if n(t) repeats this many times (caps plateau).
Minimum sample size per stratum passed to beat1cv_fun.
Optional function to compute expected CVs (e.g., beat.1cv_new).
If TRUE, print progress messages.
If TRUE, plot CVs by domain and allocations.
Output directory for plots.
Filename prefix for plot outputs.
If TRUE, save plots to a PDF file.
If TRUE, overlay initial target CVs on plots.
If TRUE, overlay CV caps on plots (when provided).
If TRUE, create convergence plot showing bracketing and bisection
out <- pareto(
strata = strata,
current_cvs = cv_equal,
target_size = target_value,
tolerance = 5,
cv_caps = caps,
beat1cv_fun = beat.1cv_new,
max_iter = 50,
max_same_iter = 20,
plot = TRUE,
plot_dir = "outputs",
plot_prefix = "italy_domains",
show_targets = TRUE,
show_caps = TRUE
)
#> Error: object 'cv_equal' not found