target | R Documentation |
Targets individuals into groups of positive, negative or neutral effect of treatment on an outcome.
target( x, pteffObject, effect = "positive", featuresinf = NULL, plot = TRUE, lb = NULL, model = "gaussian", match = 0.8, nmcov = NULL, cores = 1, ... )
x |
a |
pteffObject |
object of class |
effect |
|
featuresinf |
a |
plot |
|
lb |
|
model |
|
match |
|
nmcov |
vector of |
cores |
an integer with the number of cores for parallel computation (Default:1). |
... |
additional parameters for the |
This function uses feature data of individuals to classify them into subpopulations associated with the positive and negative effect of treating them according to a given outcome. The classification is performed by targeting the feature data (adjusted by covariates and binarized) to the profiles computed in predicteff.
The function tests whether the classification of the subjects into groups of positive and negative treatment effects modulates the association of the treatment with the outcome, fitting a model for the outcome as function of the interaction between the classification and the treatment.
Models on the outcome to test the interaction include general lineal models, beta regression and proportional hazards models.
The function can be used to target new individuals not used in the profiling and/or on the effects of other types of outcomes also expected from the treatment.
a list
of class tarteff
with fields:
classification of individuals into subpopulations of expected positive and/or negative treatment effects
a summary
of the model used to test the association of the outcome with the
interaction of between
the profile ("positiveandnegative": positive=1, neutral=0, negative=-1; "positive": positive=1, neutral=0,
"negative": negative=1, neutral=0) with the effect.
data(tcell) homologous<- matrix(c("DDX3Y","DDX3X","KDM5D","KDM5C","PRKY","PRKX", "RPS4Y1","RPS4X","TXLNGY", "TXLNG", "USP9Y", "USP9X", "XIST", "XIST", "TSIX", "TSIX"), nrow=2) pf <- predicteff(tcell, featuresinf=homologous, profile=TRUE) res <- target(tcell, pf, effect="positiveandnegative", featuresinf=homologous, nmcov="age", model="log2") res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.