glsCAR1 | R Documentation |
corCAR1
Correlation Structure for One
GeneThis function fits gls
model with REML estimation method,
corCAR1
correlation structure for one gene in a RNA-seq
repeated measures data, where data is log-transformed output from
voom
.
glsCAR1(d)
d |
a data frame containing several columns. The first 4 columns are
|
Output is a vector including the following components
aic |
AIC of the fitted model. |
s2 |
estimate of error variance. |
rho |
correlation parameter in |
fixed |
fixed effects (estimates of regression parameters). |
varbeta |
the estimates of variance of fixed effects, just include lower part and diagonal part of the variance-covariance matrix. |
data(res)
data(design)
data(covset)
d <- data.frame(cbind(y = res$ori.res$v$E[1,] ,Subject = covset$ear,
Time = covset$time, w = 1/res$ori.res$v$weights[1,], design))
glsout <- rmRNAseq:::glsCAR1(d)
glsout
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.