frame.logreg {LogicReg} | R Documentation |
Constructs a data frame for one or more Logic Regression models
Description
Evaluates all components of one or more Logic Regression
models fitted by a single call to logreg
.
Usage
frame.logreg(fit, msz, ntr, newbin, newresp, newsep, newcens, newweight)
Arguments
fit |
object of class |
msz |
if |
ntr |
see |
newbin |
binary predictors to evaluate the logic trees at. If
|
newresp |
the response. If |
newsep |
separate (linear) predictors. If |
newweight |
case weights. If |
newcens |
censoring indicator. For proportional hazards models
and exponential survival models
only. If |
Details
This function calls eval.logreg
.
Value
A data frame. The first column is the response, later columns are weights, censoring indicator, separate predictors (all of which are only provided if they are relevant) and all logic trees. Column names should be transparent.
Author(s)
Ingo Ruczinski ingo@jhu.edu and Charles Kooperberg clk@fredhutch.org
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
,
eval.logreg
,
predict.logreg
,
logreg.testdat
Examples
data(logreg.savefit1,logreg.savefit2,logreg.savefit6)
#
# fit a single mode
# 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)
frame1 <- frame.logreg(logreg.savefit1)
#
# a complete sequence
# myanneal2 <- logreg.anneal.control(start = -1, end = -4, iter = 25000, update = 0)
# logreg.savefit2 <- logreg(select = 2, ntrees = c(1,2), nleaves =c(1,7),
# oldfit = logreg.savefit1, anneal.control = myanneal2)
frame2 <- frame.logreg(logreg.savefit2)
#
# a greedy sequence
# logreg.savefit6 <- logreg(select = 6, ntrees = 2, nleaves =c(1,12), oldfit = logreg.savefit1)
frame6 <- frame.logreg(logreg.savefit6, msz = 3:5) # restrict the size