intsvy.table produces a frequency table for a categorical variable printing percentages and standard errors.
Usage
intsvy.table(variable, by, data, config)
Value
intsvy.table returns a data frame with percentages and standard errors.
Arguments
variable
The data label with the variable to be analysed.
by
The label for the grouping variable, usually the countries (i.e., by="IDCNTRYL"), but could be any other categorical variable.
data
An R object, normally a data frame, containing the data from PISA.
config
Object with configuration of a given study. Should contain the slot `prefixes` with prefixes of filenames with the student, home, school, and teacher data.