*! version 2 DEC2013
help piaacdes also see: piaactab piaacreg

Title

[R] piaacdes Basic statistics with PIAAC data

Syntax

piaacdes
varlist
[if] [in], save(string) [, options]

Main options

save(filename, ...) save
results to filename. You have to specify this option

Optional

countryid(varname) Allows providing the name of a variable containing a list of countries for which you want to obtain results.
The list can be numeric or string with any possible values.
Missing categories will be omitted from calculations and average over all countries will be calculated.
When this option is not specified, CNTRYID or cntryid variable will be used as to identify countries and the OECD average will be calculated.

vemethodn(varname numeric) Provides the name of the numeric variable specifying the jackknife variance estimation method for each country.
The variable can only contain values of 1 or 2. When this option is not specified, VEMETHODN or vemethodn variable will be used to identify jackknife method.
When this option is not specified, piaacdes will look for VEMETHODN or vemethodn variable to identify jackknife method.

weight(varlist max=1) rep(varlist) Gives the main weight and a list of jackknife replication weights.
You don't have to specify these options if your dataset contains original weights spfwt0-spfwt80 or SPFWT0-SPFWT80.

stats(string) Gives a list of statistics to be calculated. You can list any statistic calculated by -summarize-, e.g. stats(mean sd) will calculate mean and standard deviation.
If stats() and centile() are not specified, means will be calculated.

centile(string) Gives percentiles to be calculated.
For example, centile(5 50 75) will result in calculating the 5th, median and the 75th percentile.

pv(string) Gives a list of plausible values prefixes, e.g. use pv(pvlit) to calculate statistics for plausible value in literacy.

over(varname) Specifies a categorical variable or plausible value for which you want to obtain statistics by each category.
The variable must be numerical with a sequence of integers denoting each category.
For proficiency levels, specify the prefix of plausible values without ending numbers (e.g. pvlit, pvnum, pvpsl).

round(int) Specifies how many decimal places you want to see in results tables. The default is 2.

Description

piaacdes calculates basic statistics with PIAAC data for the given variables and plausible values listed in the pv() option.
The pv() option takes the prefix of plausible values variable without ending numbers (e.g. pvlit, pvnum, pvpsl).
Similarly, the prefix of plausible values can be specified in over() option.
In this case, the statistics will be calculated over proficiency levels.
Piaacdes saves results as html file that can be, for example, further edited in a spreadsheet application.
Piaacdes also returns results in Stata matrices. Type -return list- after executing the command.

Example 1. Computation of statistics without involving plausible values.

Computation of means, standard deviations, 25th and 75th centiles for the PIAAC index of readiness to learn (readiness) across countries.
Results are saved in the working directory in the file example1.html. Numbers are reported with 5 decimal points.

. piaacdes readytolearn, countryid(cntryid) stats(mean sd) centile(25 75) round(5) save(example1)

Results are also returned in matrices that can be further processed directly in Stata.
Type -return list- after running piaacdes to see the list of returned result matrices.

For example, to see the point estimates type:

. mat list r(b_readytolearn)

To see the standard errors type:

. mat list r(se_readytolearn)

Example 2. Computation of statistics with plausible values.

Computation of means and specific percentiles for the PIAAC numeracy proficiency scale (pvnum) across countries.
Results are saved in the working directory in the file example2.html. Numbers are reported with 5 decimal points.

. piaacdes, countryid(cntryid) pv(pvnum) stats(mean) centile(5 10 25 50 75 90 95) round(5) save(example2)

Results are also saved in the return matrices. For more details see Example 1.

Example 3. Computation of statistics by categories.

Computation of means and standard deviations for the PIAAC index of readiness to learn (readiness).
Results are reported separately for each country and by gender.
Numbers are reported with 2 decimal points.

. piaacdes readytolearn, countryid(cntryid) stats(mean sd) round(2) save(example3) over(gender_r)

Results are saved in the html file. Results are also saved in the separate return matrices for each over() category.
For example, to see the matrix with the standard errors for the second over() category type:

. mat list r(se_readytolearn_over2)

Example 4. Computation of statistics over proficiency levels.

Computation of means for the PIAAC index of readiness to learn (readiness) over the levels of problem solving proficiency.
OECD's proficiency thresholds are used to obtain results using the plausible values in problem solving (pvpsl*).

. piaacdes readytolearn, countryid(cntryid) stats(mean) round(2) save(example4) over(pvpsl)

Results are saved in the html file. Results are also saved in the separate return matrices for each over() category.
For example, to see the matrix with the point estimates for the fourth over() category type:

. mat list r(b_readytolearn_over4)

Also see

Help for piaactab, piaacreg (if installed)

Authors

Maciej Jakubowski,
Faculty of Economic Sciences, Warsaw University

mjakubowski@uw.edu.pl

Artur Pokropek,
Educational Research Institute (IBE), Warsaw

artur.pokropek@gmail.com

Version

Last updated 2012-12-25