intsvy.mean.pv: Calculates mean achievement score

Description Usage Arguments Value See Also Examples

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

Description

The fucntion intsvy.mean.pv uses plausible values to calculate the mean achievement score and its standard error.

Usage

1
intsvy.mean.pv(pvnames, by, data, export=FALSE, name= "output", folder=getwd(), config)

Arguments

pvnames

The names of collumns corresponding to the achievement score, for example, paste0("PV",1:5,"MATH") for PISA.

by

The label for the grouping variable, usually the countries (e.g., by="CNTRYID"), but could be any other categorical variable.

data

An R object, normally a data frame.

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.

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.

Value

intsvy.mean.pv returns a data frame with means and standard errors.

See Also

pisa.mean.pv, timss.mean.pv, pirls.mean.pv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
intsvy.mean.pv(pvnames = paste0("ASRREA0",1:5), by= "IDCNTRYL", 
    data=pirls, config=pirls_conf)

intsvy.mean.pv(pvnames = paste0("PV",1:5,"MATH"), by="CNT", data=student2012, 
    config=pisa_conf)
    
intsvy.mean.pv(pvnames = paste0("BSMMAT0",1:5), by= "IDCNTRYL", data=timss8g, 
    config=timss8_conf)
    
intsvy.mean.pv(pvnames = paste0("PVNUM", 1:10), by="CNTRYID", data=piaac, 
    config=piaac_conf)    

## End(Not run)

dickli/intsvy2 documentation built on Sept. 8, 2020, 12:05 a.m.