Specification: Cross-sectional averages (CSA)
Arguments
- vars
Character. One of "_all", "_none", or a character vector of variable names.
- lags
Integer. Either a scalar integer >= 0 applied to all CSA variables, or a named integer vector giving per-variable maximum lags. Named specifications apply only to named variables; other CSA lags are zero.
- scope
CSA sample scope. Must be
"estimation".- cluster
Must be
NULL; clustered CSA construction is not implemented.
Examples
# Cross-sectional averages (CSA) configuration for DCCE
csa <- csdm_csa(
vars = c("log_rgdpo", "log_hc", "log_ck", "log_ngd"),
lags = 3
)
csa
#> $vars
#> [1] "log_rgdpo" "log_hc" "log_ck" "log_ngd"
#>
#> $lags
#> [1] 3
#>
#> $scope
#> [1] "estimation"
#>
#> $cluster
#> NULL
#>
#> attr(,"class")
#> [1] "csdm_csa_spec"