pisa.reg: Regression analysis

Description Usage Arguments Value See Also Examples

View source: R/pisa.reg.R

Description

pisa.reg performs linear regression analysis (OLS) for an observed depedent variable (NOT for plausible values) Use the pisa2015.reg() for data from PISA 2015 study.

Usage

1
2
pisa.reg(y, x, by, data, export = FALSE, name = "output", folder = getwd())
pisa2015.reg(y, x, by, data, export = FALSE, name = "output", folder = getwd())

Arguments

y

Label for dependent variable.

x

Data labels of independent variables.

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 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.reg prints a data.frame with regression results (i.e., coefficients, standard errors, t-values, R-squared) and stores different regression output including residuals and replicate coefficients in a list object of class "intsvy.reg".

See Also

pirls.reg, timss.reg, piaac.reg

Examples

1
2
3
4
5
6
7
## Not run: 
# Table III.2.3d, p. 252 International Report 2012
pisa.reg(y="BELONG", x="ST04Q01", by="IDCNTRYL", data=pisa)
# PISA 2015
pisa2015.reg(y="AGE", x="OECD", by="ST004D01T", data=stud2015)

## End(Not run)

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