pisa.mean.pv: Calculates mean achievement score

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

pisa.mean.pvR Documentation

Calculates mean achievement score

Description

pisa.mean.pv uses five plausible values to calculate the mean achievement score and its standard error

Usage

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

Arguments

pvlabel

The label corresponding to the achievement variable, for example, "READ", for overall reading performance.

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 PIRLS.

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.mean.pv returns a data frame with the mean values and standard errors.

See Also

timss.mean.pv, pirls.mean.pv, piaac.mean.pv

Examples

## Not run: 
pisa.mean.pv(pvlabel = "MATH", by = "IDCNTRYL", data = pisa)
pisa.mean.pv(pvlabel = "MATH", by = c("IDCNTRYL", "ST04Q01"), data = pisa)
pisa.mean.pv(pvlabel = "READ", by = "IDCNTRYL", data = pisa)

## End(Not run)

intsvy documentation built on Aug. 6, 2022, 5:06 p.m.