set_survey {surveytable} | R Documentation |
Specify the survey to analyze
Description
You need to specify a survey before the other functions, such as tab()
,
will work.
Usage
set_survey(design, opts = "NCHS", csv = getOption("surveytable.csv"))
Arguments
design |
either a survey object ( |
opts |
set certain options. See below. |
csv |
name of a CSV file |
Details
opts
:
-
"nchs"
:Round counts to the nearest 1,000 – see
set_count_1k()
.Identify low-precision estimates (
surveytable.find_lpe
option isTRUE
).Percentage CI's: adjust Korn-Graubard CI's for the number of degrees of freedom, matching the SUDAAN calculation (
surveytable.adjust_svyciprop
option isTRUE
).
-
"general":
Round counts to the nearest integer – see
set_count_int()
.Do not look for low-precision estimates (
surveytable.find_lpe
option isFALSE
).Percentage CI's: use standard Korn-Graubard CI's (
surveytable.adjust_svyciprop
option isFALSE
).
Optionally, the survey can have an attribute called label
, which is the
long name of the survey.
Optionally, each variable in the survey can have an attribute called label
,
which is the variable's long name.
Value
Info about the survey.
See Also
Other options:
set_count_1k()
,
set_output()
,
show_options()
,
surveytable-options
Examples
set_survey(namcs2019sv)