- varname
String giving the name of the input series to be smoothed.
This should identify similar or comparable values in the series. Values in
the series that have the same varname will be assumed to come from
the same source.
- date
ISO numeric representation of the date the survey was in the
field (usually the start, end, or median date).
- index
Numeric value of the series. It might be a percent or proportion
responding in a single category (e.g., the approve response in presidential
approval) or some multi-response summary. For ease of interpretation,
polarity should be the same for all items.
- ncases
Number of cases (e.g., sample size) of the survey. This provides
differential weighting for the values. Setting this to NULL or
leaving it blank will weight each value equally.
- unit
Aggregation period—one of ‘D’ (daily), ‘M’
(monthly), ‘Q’ (quarterly), ‘A’ (annual), or ‘O’
(multi-year aggregation).
- mult
Number of years, only used if unit is ‘O’.
- begindt
Beginning date of the analysis. Defaults to earliest date in
the dataset. Should be specified with lubridate::ymd().
- enddt
Ending date for the analysis. Defaults to the latest date in the
data.
- npass
Not yet implemented.
- smoothing
Logical. Specifies whether exponential smoothing is applied
to the intermediate estimates during the iterative solution process.
Defaults to TRUE.
- endmonth
Ending month of the analysis.
- R
Number of bootstrap samples.
- parallel
Logical indicating whether the `mclapply` function should be used.
- level
The confidence level for the intervals. Default is 0.95.
- pw
Logical indicating whether to do pairwise tests.
- ...
Other arguments to be passed down to `mclapply`.