Multivatriate hyperparameter (mhp) objects
Create and manipulate multivatriate hyperparameter (mhp) objects
mhp(M, B, levels = NULL, names = NULL) is.mhp(x) M(x) M(x) <- value B(x) B(x) <- value levels(x) summary(object,...)
M |
Variance matrix (must be positive definite) |
B |
Array of roughness parameters. Each slice (ie |
levels |
Character vector holding the levels. Default
|
names |
Character vector holding the names of the dimensions.
Default of |
x,object |
Object of class |
value |
Replacement object |
... |
Further arguments passed to the |
An mhp
object must have names
and levels
, so
either provide them explicitly with the eponymous arguments, or give
named arrays to M
and B
.
Returns an object of class mhp
Robin K. S. Hankin
hp <- mhp(M=diag(2),B=array(c(diag(3),diag(3)),c(3,3,2)), names=letters[1:3],levels=c("oak","ash")) M(hp) B(hp)[1,1,1] <- 30 # try a negative value and see what happens names(hp) names(hp) <- c("Alice","Zachy","Annabel") levels(hp) <- c("squid","snail") summary(hp)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.