data(tinysim)
data(ptychoIn)
data(ptychoOut)
tinysim
is an object returned by
createDataBayesModel
with mode
equal to
pleiotropy. The object ptychoIn
is an object returned by
createDataBayesModel
with mode
equal to
gene. The object ptychoOut
is an object returned by
ptycho
applied to the data in ptychoIn
using the
Across Sites prior. The object tinysim
contains simulated data. Its design matrix is
100-by-10. It has 10 replicates, each with a 100-by-5 response matrix. It
is generated by createPubData
.
The object ptychoIn
also contains simulated data generated by
createPubData
. Its design matrix is 3000-by-10 because, for its
effect sizes, n
must be about that large to distinguish signal from
noise as explained in the supplemental text to Stell and Sabatti (2015). To
keep the object small, it has only 1 replicate, which has only one response.
The object ptychoOut
is generated by
G <- 2; p <- ncol(ptychoIn$X) groups <- createGroupsSim(G, p) state <- list(list(indic.grp=rep(FALSE,G), indic.var=matrix(FALSE,nrow=p,ncol=1), tau=1), list(indic.grp=rep(TRUE,G), indic.var=matrix(TRUE,nrow=p,ncol=1), tau=1)) ptychoOut <- ptycho(X=ptychoIn$X, y=ptychoIn$replicates[[1]]$y, groups=groups, initStates=state, only.means=10000*seq_len(5), random.seed=12345)
createPubData
, ptycho