pisa.per.pv: PISA percentiles

View source: R/pisa.per.pv.R

pisa.per.pvR Documentation

PISA percentiles

Description

Calculates percentiles for plausible values.

Usage

  pisa.per.pv(pvlabel, by, per, data, export=FALSE, name= "output", 
  folder=getwd())
  

Arguments

pvlabel

The names of columns corresponding to the achievement plausible scores.

per

User-defined percentiles (e.g., per = c(5, 10, 25, 75, 90, 95)).

by

The label of the categorical grouping variable (e.g., by="IDCNTRYL") or variables (e.g., by=c("IDCNTRYL", "ST79Q03")).

data

An R object, normally a data frame, containing the data from PISA.

export

A logical value. If TRUE, the output is exported to a file in comma-separated value format (.csv) that can be opened from LibreOffice or Excel.

name

The name of the exported file.

folder

The folder where the exported file is located.

Value

pisa.per.pv returns a data frame with percentiles and associated standard errors. Default weights (e.g. "TOTWGT" in TIMSS) and percentiles are specified in the config parameter.

See Also

timss.per.pv, pirls.per.pv

Examples

  ## Not run: 
pisa.per.pv(pvlabel=paste0("PV",1:10,"MATH"), per=c(10, 25, 75, 90), by="IDCNTRYL", data=pisa)
  
## End(Not run)

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