Description Usage Arguments Examples
~~ A concise (1-5 lines) description of what the function does. ~~
1 | data.norm(Y, Covs, prior, Treat)
|
Y |
|
Covs |
|
prior |
|
Treat |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (Y, Covs, prior, Treat)
{
inData = list(Treat = Treat, Y = Y, mean.alpha = prior$mean.alpha,
prec.alpha = prior$prec.alpha, mean.beta = prior$mean.beta,
prec.beta = prior$prec.beta, prec.1 = prior$prec.1, prec.2 = prior$prec.2)
if (!is.null(Covs)) {
inData[[1 + length(inData)]] = Covs
names(inData)[[length(inData)]] = "x"
inData[[1 + length(inData)]] = prior$mean.slope
names(inData)[[length(inData)]] = "mean.slope"
inData[[1 + length(inData)]] = prior$prec.slope
names(inData)[[length(inData)]] = "prec.slope"
}
return(inData)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.