iterateBMAlm( x, y, prior.prob = NULL, control = iBMAcontrolLM(), verbose = FALSE)
iBMAcontrolLM()
.
FALSE
.
bicreg
in the BMA
package:
ols
iterateBMAlm
is intended for datasets that have more variables
(e.g. gene expression values) than observations (e.g. subjects).
There is currently no mechanism for handling factor variables in
iterateBMAlm
, as there is in the underlying function
bicreg
in the BMA
package. However factors can be encoded
by users and included with other variables as input.
iBMAcontrolLM
,
varord
,
bicreg
data(dream4)
network <- 1
Time <- as.numeric(dream4ts100[[network]]$time)
xIndex <- which(Time != max(Time))
yIndex <- which(Time != min(Time))
gene <- "G1"
x <- dream4ts100[[network]][xIndex,-(1:2)]
y <- dream4ts100[[network]][yIndex,gene]
nvar <- 50
ord <- varord( x, y, ordering = "bic1")[1:nvar]
result <- iterateBMAlm( x = x[,ord], y = y)
Run the code above in your browser using DataLab