Description Usage Arguments Value References See Also
View source: R/vardchangstrs.R
Computes the variance estimation for measures of annual net change or annual for single stratified sampling designs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | vardchangstrs(
Y,
H,
PSU,
w_final,
Dom = NULL,
periods = NULL,
dataset,
periods1,
periods2,
in_sample,
in_frame,
confidence = 0.95,
percentratio = 1
)
|
Y |
Variables of interest. Object convertible to |
H |
The unit stratum variable. One dimensional object convertible to one-column |
PSU |
Primary sampling unit variable. One dimensional object convertible to one-column |
w_final |
Weight variable. One dimensional object convertible to one-column |
Dom |
Optional variables used to define population domains. If supplied, variables are calculated for each domain. An object convertible to |
periods |
Variable for the all survey periods. The values for each period are computed independently. Object convertible to |
dataset |
Optional survey data object convertible to |
periods1 |
The vector of periods from variable |
periods2 |
The vector of periods from variable |
in_sample |
Sample variable. One dimensional object convertible to one-column |
in_frame |
Frame variable. One dimensional object convertible to one-column |
confidence |
optional; either a positive value for confidence interval. This variable by default is 0.95. |
percentratio |
Positive numeric value. All linearized variables are multiplied with |
A list with objects are returned by the function:
crossectional_results - a data.table containing:
year - survey years,
subperiods - survey sub-periods,
variable - names of variables of interest,
Dom - optional variable of the population domains,
estim - the estimated value,
var - the estimated variance of cross-sectional and longitudinal measures,
sd_w - the estimated weighted variance of simple random sample,
se - the estimated standard error of cross-sectional or longitudinal,
rse - the estimated relative standard error (coefficient of variation),
cv - the estimated relative standard error (coefficient of variation) in percentage,
absolute_margin_of_error - the estimated absolute margin of error,
relative_margin_of_error - the estimated relative margin of error,
CI_lower - the estimated confidence interval lower bound,
CI_upper - the estimated confidence interval upper bound,
confidence_level - the positive value for confidence interval.
annual_results - a data.table containing:
year_1 - survey years of years1 for measures of annual net change,
year_2 - survey years of years2 for measures of annual net change,
Dom - optional variable of the population domains,
variable - names of variables of interest,
estim_2 - the estimated value for period2 for measures of annual net change,
estim_1 - the estimated value for period1 for measures of annual net change,
estim - the estimated value,
var - the estimated variance,
se - the estimated standard error,
rse - the estimated relative standard error (coefficient of variation),
cv - the estimated relative standard error (coefficient of variation) in percentage,
absolute_margin_of_error - the estimated absolute margin of error for period1 for measures of annual,
relative_margin_of_error - the estimated relative margin of error in percentage for measures of annual,
CI_lower - the estimated confidence interval lower bound,
CI_upper - the estimated confidence interval upper bound,
confidence_level - the positive value for confidence interval,
significant - is the the difference significant
Guillaume OSIER, Virginie RAYMOND, (2015), Development of methodology for the estimate of variance of annual net changes for LFS-based indicators. Deliverable 1 - Short document with derivation of the methodology.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.