Last chance! 50% off unlimited learning
Sale ends in
Given a vector of data, this function computes the bivariate posteror for the expectation parameter and the logged scale parameter of a normal distribution, assuming that the data represents independent observations from the normal distribution. One assumes a flat prior.
posteriornormal1(data)
A vector with data values.
An object representing a bivariate Normal-ExpGamma distribution.
# NOT RUN {
data <- simulate(normal(3.3, log(2)), 9)
posteriornormal1(data)
linearmodel(data, designOneGroup(length(data))) #Gives same result
# }
Run the code above in your browser using DataLab