Learn R Programming

outerbase (version 0.1.0)

outermod: Outer product-type model

Description

This is a class used to construct outerbase class instances. It stores key information for constructing a basis.

Arguments

Value

no returns, this is a class which contains methods

Fields

outermod$updatehyp(hyp)

update hyperparameters

outermod$selectterms(numterms)

find best numterms terms

outermod$getvar(terms)

find variances of coefficients associated with terms

See Also

outerbase the main product from an outermod

setcovfs, setknot, gethyp

Examples

Run this code
# NOT RUN {
om = new(outermod)
setcovfs(om, c("mat25", "mat25", "mat25"))
setknot(om,
         list(seq(0,1,by=0.01),seq(0,1,by=0.01),seq(0,1,by=0.01)))
terms = om$selectterms(40)
coeffvar =om$getvar(terms)
hyp = gethyp(om)
hyp[1:2] = 0.5
om$updatehyp(hyp)
coeffvar = om$getvar(terms)
# }

Run the code above in your browser using DataLab