splitd | R Documentation |
Split-dichotomized regression model.
splitd(start.model, x_, data, id, ...)
start.model |
a regression model |
x_ |
language |
data |
data.frame |
id |
logical vector, indices of training ( |
... |
additional parameters, currently not in use |
Function splitd()
returns a function,
the dichotomizing rule \mathcal{D}
based on the training set (y_0, x_0)
,
with additional attributes
attr(,'p1')
double scalar, p_1 = \text{Pr}(\mathcal{D}(x_1)=1)
attr(,'effsize')
double scalar, univariable regression coefficient estimate of y_1\sim\mathcal{D}(x_1)
Function splitd()
performs a univariable regression model on the test set with a dichotomized predictor, using a dichotomizing rule determined by a recursive partitioning of the training set.
Specifically, given a training-test sample split,
find the dichotomizing rule \mathcal{D}
of the predictor x_0
given the response y_0
in the training set (via function node1()
);
fit a univariable regression model of the response y_1
with the dichotomized predictor \mathcal{D}(x_1)
in the test set.
Currently the Cox proportional hazards (coxph) regression for Surv response, logistic (glm) regression for logical response and linear (lm) regression for gaussian response are supported.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.