Description Usage Arguments Details Value Author(s) References Examples
Fit the correspondence curve regression
1 2 3 |
formula |
object of class 'formula' (or one that can be coerced to that class): a symbolic description of the model to be fitted. The details of model specification are given under 'Details'. |
data |
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which ccrFit is called. |
model |
logical. If TRUE the corresponding components of the fit are returned. |
link |
The link function to be used for fitting, currently only link = 'loglog' and 'logitlogit'. |
is.slope |
logical. Only for link 'logitlogit'. Default is FALSE. |
is.ht |
logical. Only for link 'logitlogit'. Default is FALSE. |
par.ini |
the initial values for the estimate parameters. If is.null(par.ini) == TRUE, par.ini is set in the the details. |
tm |
The vector of tm. |
method |
The method to be used for fitting, currently only method = 'ccr.fit'. |
sig.level |
The significant level. Default is 0.05. |
Please refer to Li, Q. and Zhang, F. (2017).
A list with the elements:
a named vector of coefficients.
if requested (the default), the model frame used.
the matched call.
the estimated standard errors.
the confidence intervals.
Feipeng Zhang and Qunhua Li
Li, Q. and Zhang, F. (2017). A regression framework for assessing covariate effects on the reproducibility of high-throughput experiments. Biometrics, http://dx.doi.org/10.1111/biom.12832.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## The example of ChIP data
## Not run:
data(data_ChIP)
## estimate
par.ini = c(1, 0, -0.1, 0, 0, 0.5) # initial value
fit <- ccrFit(cbind(y1, y2)~x, data = data_ChIP,
link = 'loglog', par.ini = par.ini)
## The example of microarray data
data(data_microarray)
## with slope without ht
par.ini = c(-1, 1, 0.1, 0.1) # initial value
fit <- ccrFit(cbind(y1,y2)~x1+x2,
data = data_microarray,
link = 'logitlogit',
is.slope = TRUE, is.ht = FALSE,
par.ini = par.ini)
## with slope with ht, including iteractions
par.ini = c(-1, 0.1, 0.1, 0, 1, 0.1, 0.1, 0)
fit <- ccrFit(cbind(y1,y2)~x1*x2,
data = data_microarray,
link = 'logitlogit',
is.slope = TRUE, is.ht = TRUE,
par.ini = par.ini)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.