powered by
Extract the variance of the responses, \(\mathbf V_y\), of a fitted I-prior model.
vary(object)
An object of class ipriorMod or ipriorKernel.
ipriorMod
ipriorKernel
For an I-prior model, the variance is given by $$\mathbf V_y = \psi\mathbf H_\lambda^2 + \psi^{-1}\mathbf I_n$$.
mod.fit <- iprior(stack.loss ~ ., stackloss) Var.Y <- vary(mod.fit) str(Var.Y)
Run the code above in your browser using DataLab