fit.simsl {simsl} | R Documentation |
Single-index models with a surface-link (workhorse function)
Description
fit.simsl
is the workhorse function for Single-index models with a surface-link (SIMSL).
Usage
fit.simsl(y, A, X, Xm = NULL, family = "gaussian", R = NULL,
bs = c("ps", "ps"), k = c(8, 8), m = list(NA, NA), sp = NULL,
knots = NULL, sep.A.effect = FALSE, mc = c(TRUE, FALSE),
method = "GCV.Cp", beta.ini = NULL, ind.to.be.positive = NULL,
random.effect = FALSE, z = NULL, gamma = 1, pen.order = 0,
lambda = 0, max.iter = 10, eps.iter = 0.01, trace.iter = TRUE,
center.X = TRUE, scale.X = TRUE, uncons.final.fit = TRUE)
Arguments
y |
a n-by-1 vector of treatment outcomes; y is a member of the exponential family; any distribution supported by |
A |
a n-by-1 vector of treatment variable; each element is assumed to take a value on a continuum. |
X |
a n-by-p matrix of baseline covarates. |
Xm |
a n-by-q design matrix associated with an X main effect model; the defult is |
family |
specifies the distribution of y; e.g., "gaussian", "binomial", "poisson"; can be any family supported by |
R |
the number of response categories for the case of family = "ordinal". |
bs |
basis type for the treatment (A) and single-index domains, respectively; the defult is "ps" (p-splines); any basis supported by |
k |
basis dimension for the treatment (A) and single-index domains, respectively. |
m |
a length 2 list (e.g., m=list(c(2,3), c(2,2))), for the treatment (A) and single-index domains, respectively, where each element specifies the order of basis and penalty (note, for bs="ps", c(2,3) means a 2nd order P-spline basis (cubic spline) and a 3rd order difference penalty; the default "NA" sets c(2,2) for each domain); see |
sp |
a vector of smoothing parameters; Smoothing parameters must be supplied in the order that the smooth terms appear in the model formula (i.e., A, and then the single-index); negative elements indicate that the parameter should be estimated, and hence a mixture of fixed and estimated parameters is possible; see |
knots |
a list containing user-specified knot values to be used for basis construction, for the treatment (A) and single-index domains, respectively. |
sep.A.effect |
If |
mc |
a length 2 vector indicating which marginals (i.e., A and the single-index, respectively) should have centering (i.e., the sum-to-zero) constraints applied; the default is |
method |
the smoothing parameter estimation method; "GCV.Cp" to use GCV for unknown scale parameter and Mallows' Cp/UBRE/AIC for known scale; any method supported by |
beta.ini |
an initial value for |
ind.to.be.positive |
for identifiability of the solution |
random.effect |
if |
z |
a factor that specifies the random intercepts when |
gamma |
increase this beyond 1 to produce smoother models. |
pen.order |
0 indicates the ridge penalty; 1 indicates the 1st difference penalty; 2 indicates the 2nd difference penalty, used in a penalized least squares (LS) estimation of |
lambda |
a regularization parameter associated with the penalized LS for |
max.iter |
an integer specifying the maximum number of iterations for |
eps.iter |
a value specifying the convergence criterion of algorithm. |
trace.iter |
if |
center.X |
if |
scale.X |
if |
uncons.final.fit |
if |
Details
The function estimates a linear combination (a single-index) of covariates X, and captures a nonlinear interactive structure between the single-index and the treatment defined on a continuum via a smooth surface-link on the index-treatment domain.
SIMSL captures the effect of covariates via a single-index and their interaction with the treatment via a 2-dimensional smooth link function.
Interaction effects are determined by shapes of the link function.
The model allows comparing different individual treatment levels and constructing individual treatment rules,
as functions of a biomarker signature (single-index), efficiently utilizing information on patient’s characteristics.
The resulting simsl
object can be used to estimate an optimal dose rule for a new patient with pretreatment clinical information.
Value
a list of information of the fitted SIMSL including
beta.coef |
the estimated single-index coefficients. |
g.fit |
a |
beta.ini |
the initial value used in the estimation of |
beta.path |
solution path of |
d.beta |
records the change in |
X.scale |
sd of pretreatment covariates X |
X.center |
mean of pretreatment covariates X |
A.range |
range of the observed treatment variable A |
p |
number of baseline covariates X |
n |
number of subjects |
Author(s)
Park, Petkova, Tarpey, Ogden
See Also
pred.simsl
, fit.simsl