Print svyplan objects
Usage
# S3 method for class 'svyplan_n'
print(x, ...)
# S3 method for class 'svyplan_cluster'
print(x, ...)
# S3 method for class 'svyplan_prec'
print(x, ...)
# S3 method for class 'svyplan_varcomp'
print(x, ...)
# S3 method for class 'svyplan_power'
print(x, ...)
# S3 method for class 'svyplan_n'
format(x, ...)
# S3 method for class 'svyplan_cluster'
format(x, ...)
# S3 method for class 'svyplan_prec'
format(x, ...)
# S3 method for class 'svyplan_varcomp'
format(x, ...)
# S3 method for class 'svyplan_power'
format(x, ...)
# S3 method for class 'svyplan_n'
summary(object, ...)
# S3 method for class 'svyplan_cluster'
summary(object, ...)
# S3 method for class 'svyplan_prec'
summary(object, ...)
# S3 method for class 'svyplan_varcomp'
summary(object, ...)
# S3 method for class 'svyplan_power'
summary(object, ...)
# S3 method for class 'svyplan_n'
confint(object, parm, level = 0.95, ...)
# S3 method for class 'svyplan_prec'
confint(object, parm, level = 0.95, ...)
# S3 method for class 'svyplan_n'
as.integer(x, ...)
# S3 method for class 'svyplan_n'
as.double(x, ...)
# S3 method for class 'svyplan_cluster'
as.integer(x, ...)
# S3 method for class 'svyplan_cluster'
as.double(x, ...)
# S3 method for class 'svyplan_power'
as.integer(x, ...)
# S3 method for class 'svyplan_power'
as.double(x, ...)
# S3 method for class 'svyplan_strata'
print(x, ...)
# S3 method for class 'svyplan_strata'
format(x, ...)
# S3 method for class 'svyplan_strata'
summary(object, ...)
# S3 method for class 'svyplan_strata'
as.data.frame(x, ...)
# S3 method for class 'svyplan_strata'
as.integer(x, ...)
# S3 method for class 'svyplan_strata'
as.double(x, ...)Arguments
- x
A svyplan object.
- ...
Additional arguments (currently unused).
- object
A svyplan object (for
summaryandconfintmethods).- parm
Ignored (included for S3 consistency with
confint()).- level
Confidence level (default 0.95).
Details
For svyplan_cluster objects, per-stage sizes are ceiled to integers
for operational use. The total shown by print(), format(), and
as.integer() is the product of ceiled per-stage sizes — the number of
interviews to actually conduct. The unrounded continuous optimum
(x$total_n) is shown in parentheses and returned by as.double().
Summary: as.integer(x) = operational total (what goes in the field),
as.double(x) = continuous optimum (what the math solved for).