Objective model posterior probabilities and marginal factor posterior probabilities from Bayesian screening experiments according to Consonni and Deldossi procedure.
OBsProb(X, y, abeta=1, bbeta=1, blk, mFac, mInt, nTop)
Matrix. The design matrix.
vector. The response vector.
First parameter of the Beta prior distribution on model space
Second parameter of the Beta prior distribution on model space
integer. Number of blocking factors (>=0). These factors are
accommodated in the first columns of matrix X
. There are
ncol(X)-blk
design factors.
integer. Maximum number of factors included in the models.
integer <= 3. Maximum order of interactions among factors considered in the models.
integer <=100. Number of models to print ordered according to the highest posterior probability.
Below a list with all output parameters of the FORTRAN subroutine obm
.
The names of the list components are such that they match the original FORTRAN
code. Small letters are used for capturing program's output.
matrix. The design matrix.
vector. The response vector.
integer. Number of runs of the screening experiment.
integer. Number of design factors.
integer. First parameter of the Beta prior distribution on model space
integer. Second parameter of the Beta prior distribution on model space
integer. Number of blocking factors accommodated in the first
columns of matrix X
.
integer. Maximum number of factors considered in the models.
integer. Maximum interaction order among factors considered in the models.
integer. Number of models to print ordered according to the highest posterior probability
integer. Total number of models evaluated.
vector. Vector of posterior probabilities of the top ntop
models.
integer. Number of factors in each of the top ntop
models.
matrix. Matrix of the factors' labels
of the top ntop
models.
vector. Vector of factor posterior probabilities.
vector. Vector of residual variances of the top ntop
models.
integer. Indicator variable. ind
is 1 if the obm
subroutine exited properly. Any other number correspond to
the format label number in the FORTRAN subroutine script.
Model and factor posterior probabilities are computed according to Consonni and Deldossi Objective Bayesian
procedure. The design factors are accommodated in the matrix X
after
blk
columns of the blocking factors. So, ncol(X)-blk
design factors
are considered.
A Beta(abeta, bbeta) distribution is assumed as a prior on model space.
The function calls the FORTRAN subroutine obm
and captures summary results.
The complete output of the FORTRAN code is save in the OBsPrint.out
file in the working directory. The output is a list of class OBsProb
for which
print
, plot
and summary
methods are available.
Consonni, G. and Deldossi, L. (2015), "Objective Bayesian model discrimination in follow-up experimental designs" DOI 10.1007/s11749-015-0461-3. TEST.
Meyer, R. D., Steinberg, D. M. and Box, G. E. P. (1996). "Follow-Up Designs to Resolve Confounding in Multifactor Experiments (with discussion)". Technometrics, Vol 38 No. 4. pp. 303--332.
# NOT RUN {
library(OBsMD)
data(OBsMD.es5, package="OBsMD")
X <- as.matrix(OBsMD.es5[,1:5])
y <- OBsMD.es5[,6]
# Using for model prior probability a Beta with parameters a=1 b=1
es5.OBsProb <- OBsProb(X=X,y=y, abeta=1, bbeta=1, blk=0,mFac=5,mInt=2,nTop=32)
print(es5.OBsProb)
summary(es5.OBsProb)
# }
Run the code above in your browser using DataLab