pisa.select.merge: Select and merge data

View source: R/pisa.select.merge.R

pisa.select.mergeR Documentation

Select and merge data

Description

pisa.select.merge selects and merges data from PISA. Achievement and weight variables (all of them) are selected by default.

Usage

pisa.select.merge(folder=getwd(), student.file, parent.file=c(), school.file=c(), 
countries, student=c(), parent, school)

Arguments

folder

Directory path where the PISA data are located, if all the data are located in the same folder.

student.file

Student file name if 'folder' is provided, otherwise full path name of student dataset (required argument).

parent.file

Parent file name if 'folder' is provided, otherwise full path name of parent dataset.

school.file

School file name if 'folder' is provided, otherwise full path name of school dataset.

countries

The selected countries, supplied with the abbreviation (e.g., countries=c("DEU", "NOR") or codes. If no countries are selected, all are selected.

student

The data labels for the selected student variables.

parent

The data labels for the selected parental variables.

school

The data labels for the selected school variables.

Value

pisa.select.merge returns a data frame with the selected data from PISA.

See Also

timssg4.select.merge, timssg8.select.merge, pirls.select.merge

Examples

## Not run: 
pisa <- pisa.select.merge(folder=getwd(),
        school.file="INT_SCQ12_DEC03.sav",
        student.file="INT_STU12_DEC03.sav",
        parent.file="INT_PAQ12_DEC03.sav",
        student= c("IMMIG", "ESCS", "ST04Q01", "ST61Q04", "ST62Q01", "ST08Q01"),
        parent = c("PARINVOL", "PARSUPP"),
        school = c("STRATIO", "SCHAUTON", "CLSIZE"),
        countries = c("HKG", "USA", "SWE", "POL", "PER"))

## End(Not run)

intsvy documentation built on Oct. 3, 2023, 1:07 a.m.