Objects of class
weightTAPSoutput are created by the
An object of the class ‘weightTAPSoutput’ has the following slots:
df List of dataframes of subsetted TAPS data with imputed data for non-response in covariates, with column for weights - if method none chosen, of class data.frame
attrit A list of vectors of attrition rates by sociodemographic groups
stats A list of population statistics from wave to wave
df contains the dataframe(s) that represent the final subset data.
The final subset data keeps only the outcome and covariates of interest specified. It also accounts for non-response in the outcome variable and attrition.
Respondents with missing values in the outcome variable for any of the waves desired are removed from the final dataframe.
Missing values in sociodemographic variables are imputed for the respondents that remain in the sample, in order to compute their proper weight.
The missing covariate data can be left as is, by specifying
If imputation is desired, the argument
method can be set to 'multi' for multiple imputation, or 'hotdeck' for hotdeck imputation.
If multiple imputation is done, the argument
m should be set to the number of imputed dataframes to be created.
attrit is a list of attrition rates from the first wave specified in the outcome argument.
Each quantity represents the percentage of people (by demographic group) that attritted TAPS through the waves specified.
It compares the initial composition of each demographic group (from the oldest wave specified) to the composition of the same demographic group in the final subset data delivered by
Large values, particularly large values relative to other values in the same sociodemographic category, indicate high rates of attrition.
stats lists each sociodemographic group's share of the overall population as represented in the final sample for each outcome.
The information contained in both the
stats slots can be graphically illustrated using the
Two different types of plots are displayed after running the plot function: a dot chart and a set of trend plots.
The dot chart shows the differences between the sociodemographic composition of the sample in the first wave specified and the final subset dataframe.
This information is disaggregated by the following sociodemographic groups: Age and Gender, Ethnicity, Education, Income, Region and Metropolitan status, and Internet use.
The trend plots presented illustrate the changing composition of the sample by demographic group across the waves specified.
The lines shown in each plot correspond to the different categories within each of the groups mentioned.
The lines show the percentage of the final subset data belonging to each category by wave.
The plots aim to show the variation in the composition of the sociodemographic groups through the waves specified.
print(objectname) will show a summary of the attrition rates.
show(objectname) will run the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.