pisa.log.pv: Logistic regression analysis with plausible values

Description Usage Arguments Value See Also Examples

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

Description

pisa.log.pv performs logistic regression with plausible values and replicate weights. Use the pisa2015.log.pv() for data from PISA 2015 study.

Usage

1
2
3
4
pisa.log.pv(pvlabel="READ", x, by, cutoff,  
      data, export=FALSE, name= "output", folder=getwd())
pisa2015.log.pv(pvlabel="READ", x, by, cutoff,  
      data, export=FALSE, name= "output", folder=getwd())

Arguments

pvlabel

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

x

Data labels of independent variables.

cutoff

The cut-off point at which the dependent plausible values scores are dichotomised (1 is larger than the cut-off)

by

The label for the categorical grouping variable (i.e., by="IDCNTRYL") or variables (e.g., x= 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.log.pv returns a data frame with coefficients, standard errors, t-values, and odds ratios. If "by" is specified, results are reported in a list.

See Also

timss.log.pv, pirls.log.pv

Examples

1
2
3
4
5
6
## Not run: 
timss.log.pv(pvlabel="BSMMAT", cutoff= 550, x=c("ITSEX", "BSBGSLM"), by="IDCNTRYL", data=timss8g)
intsvy.log.pv(pvlabel="BSMMAT", cutoff= 550, x="ITSEX", by="IDCNTRYL", 
data=timss8g, config=timss8_conf)

## End(Not run)

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