data.norm: ~~function to do ... ~~

Description Usage Arguments Examples

Description

~~ A concise (1-5 lines) description of what the function does. ~~

Usage

1
data.norm(Y, Covs, prior, Treat)

Arguments

Y
Covs
prior
Treat

Examples

 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)
  }

jservadio/TrialistNof1 documentation built on May 20, 2019, 2:08 a.m.