knitr::opts_chunk$set(echo = TRUE) library("intsvy") dir <- "/home/eldani/eldani/International LSA/PISA/2022"
library("devtools") install_github("eldafani/intsvy") library("intsvy")
Check names of variables in student and school files and names of participating countries for data selection. Datasets are stored in directory, dir.
pisa.var.label(folder = dir, student.file="CY08MSP_STU_QQQ.sav", school.file="CY08MSP_SCH_QQQ.sav", output = dir)
Select data for three countries, student's SES, sex, and school's location
pisa <- pisa.select.merge(folder = dir, student.file="CY08MSP_STU_QQQ.sav", school.file="CY08MSP_SCH_QQQ.sav", student= c("ESCS", "ST004D01T"), school = c("SC001Q01TA"), countries = c("ARG", "FRA", "PER"))
The average mathematics score and its associated standard error are presented, first for Argentina, second for France and third for Peru.
pisa.mean.pv(pvlabel = paste0("PV", 1:10, "MATH"), by = "CNT", data = pisa)
pisa.mean.pv(pvlabel = paste0("PV", 1:10, "MATH"), by = c("CNT", "ST004D01T"), data = pisa)
mathcut <- c(357.77, 420.07, 482.38, 544.68, 606.99, 669.3)
pisa.ben.pv(pvlabel= paste0("PV", 1:10, "MATH"), cutoff= mathcut, by="CNT", data=pisa)
pisa.reg.pv(pvlabel= paste0("PV", 1:10, "READ"), x="ST004D01T", by = "CNT", data=pisa)
pisa.reg.pv(pvlabel= paste0("PV", 1:10, "MATH"), x="ESCS", by = "CNT", data=pisa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.