print.logregmodel: Prints Logic Regression Formula

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/LogicReg.R

Description

Prints formulas for objects fitted by logreg.

Usage

1
2
## S3 method for class 'logregmodel'
print(x, nms, notnms, pstyle, ...)

Arguments

x

object of class logregmodel, typically a part of an object of class logreg, which is the result of the function logreg.

nms

names of variables. If nms is provided variable names will be printed, otherwise indices will be used.

notnms

names of complements of the variables. If notnms is not provided “not” will be added before the variable names.

pstyle

parenthesis style. If pstyle = 1 (the default) rules are more compact than if pstyle = 2.

...

other options are ignored

Value

A text representation of the model will be printed.

Author(s)

Ingo Ruczinski [email protected] and Charles Kooperberg [email protected].

References

Ruczinski I, Kooperberg C, LeBlanc ML (2003). Logic Regression, Journal of Computational and Graphical Statistics, 12, 475-511.

Ruczinski I, Kooperberg C, LeBlanc ML (2002). Logic Regression - methods and software. Proceedings of the MSRI workshop on Nonlinear Estimation and Classification (Eds: D. Denison, M. Hansen, C. Holmes, B. Mallick, B. Yu), Springer: New York, 333-344.

See Also

logreg, logregmodel, print.logreg, print.logregtree, logreg.testdat

Examples

1
2
3
4
5
6
data(logreg.savefit1)
#
# myanneal <- logreg.anneal.control(start = -1, end = -4, iter = 25000, update = 1000)
# logreg.savefit1 <- logreg(resp = logreg.testdat[,1], bin=logreg.testdat[, 2:21],
#                type = 2, select = 1, ntrees = 2, anneal.control = myanneal)
print(logreg.savefit1$model) 

LogicReg documentation built on June 15, 2018, 1:04 a.m.