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

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

intsvy.log.pvR Documentation

Logistic regression analysis with plausible values

Description

intsvy.log.pv performs logistic regression with plausible values and replicate weights.

Usage

intsvy.log.pv(pvnames, x, cutoff, by, data, export=FALSE, name= "output", 
folder=getwd(), config)

Arguments

pvnames

The names of columns corresponding to the achievement plausible scores.

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", "ITSEX")).

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.

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.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. Weights, e.g. "TOTWGT" for PIRLS, are defined in the config argument.

See Also

pisa.log.pv, pirls.log.pv, timss.log.pv

Examples

## Not run: 
intsvy.log.pv(pvnames=paste0("PV",1:10,"MATH") , cutoff= 606.99, x="ESCS", by="IDCNTRYL", 
data=pisa, config=pisa_conf)
intsvy.log.pv(pvnames=paste0("BSMMAT0", 1:5), cutoff= 550, x="ITSEX", by="IDCNTRYL", 
data=timss8g, config=timss8_conf)

## End(Not run)

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