Learn R Programming

languageR (version 1.5.0)

item.fnc: Function for by-item regression used by simulateRegression.fnc

Description

This function carries out a by-item regression for the simulated data sets generated in simulate.regression.fnc. It is not designed to be used independently.

Usage

item.fnc(data)

Arguments

data

A data frame as produced by make.reg.fnc().

Value

A model fitted with lm().

See Also

See Also simulateRegression.fnc and make.reg.fnc.

Examples

Run this code
# NOT RUN {
  dat = make.reg.fnc()
  dat.lm = item.fnc(dat)
  summary(dat.lm)
# }

Run the code above in your browser using DataLab