Learn R Programming

intsvy (version 2.9)

intsvy.table: Frequency table

Description

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.

See Also

timss.table, pirls.table

Examples

Run this code
if (FALSE) {
intsvy.table(variable="ASDGSLM", by="IDCNTRYL", data=timss4, 
  config = intsvy:::timss_conf)
intsvy.table(variable="ST08Q01", by="CNT", data=pisa, config=pisa_conf)
}

Run the code above in your browser using DataLab