Description Usage Arguments Value Examples
View source: R/QCH_functions.R
Infer Hconfig posteriors
1 |
pValMat |
a matrix of p-values, each column corresponding to a p-value serie. |
Hconfig |
an Hconfig list as generated by the |
plotting |
a boolean. Should some diagnostic graphs be plotted ? Default is FALSE. |
A list of 2 objects 'prior' and 'posterior'. Object 'prior' is a vector of estimated prior probabilities for each of the H-configurations. Object 'posterior' is a matrix providing for each item (in row) its posterior probability to belong to each of the H-configurations (in columns).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(PvalSets)
PvalMat <- as.matrix(PvalSets[,-3])
## Build the Hconfig objects
Q <- 2
AtLeast <- 2
Hconfig <- GetHinfo(Q,AtLeast)$Hconfig
## Run the function
res.fit <- qch.fit(PvalMat,Hconfig)
## Display the prior of each class of items
res.fit$prior
## Display the first posteriors
head(res.fit$posterior)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.