Learn R Programming

givitiR (version 1.3)

polynomialLogRegrFw: Forward Selection in Polynomial Logistic Regression

Description

polynomialLogRegrFw implements a forward selection in a polynomial logistic regression model.

Usage

polynomialLogRegrFw(data, thres, maxDeg, startDeg)

Arguments

data
A data.frame object with the numeric variables "o", "e" and "logite", representing the binary outcomes, the probabilities of the model under evaluation and the logit of the probabilities. The variable "e" must contain values between 0 and 1. The variable "o" must assume only the value 0 and 1.
thres
A numeric scalar between 0 and 1 representing the significance level adopted in the forward selection.
maxDeg
The maximum degree considered in the forward selection.
startDeg
The starting degree in the forward selection.

Value

A list containing the following components:

Examples

Run this code
e <- runif(100)
logite <- logit(e)
o <- rbinom(100, size = 1, prob = e)
data <- data.frame(e = e, o = o, logite = logite)
polynomialLogRegrFw(data, .95, 4, 1)

Run the code above in your browser using DataLab