coef.jointmotbf {MoTBFs} | R Documentation |
"jointmotbf"
ObjectExtracts the parameters of the learned multivariate mixtures of truncated basis functions.
## S3 method for class 'jointmotbf'
coef(object, ...)
object |
An MoTBF function. |
... |
Other arguments, unnecessary for this function. |
A "numeric"
vector with the parameters of the function.
parametersJointMoTBF and jointMoTBF
## Load the mnormt package to generate a multinormal dataset
## Dataset
Mean <- 0; nVar <- 2; ro <- 0
varcov <- matrix(c(rep(c(1, rep(ro, nVar)), nVar-1),1), nrow=nVar)
means <- rep(Mean, nVar)
X <- rmnorm(100,means,varcov)
data <- standardizeDataset(data.frame(X))
## Joint function
dim <-c(2,4)
param <- parametersJointMoTBF(data, dimensions = dim)
P <- jointMoTBF(param)
P$Time
## Coefficients
coef(P)
#############################################################################
## MORE EXAMPLES ############################################################
#############################################################################
## Dataset
Mean <- 0; nVar <- 3; ro <- 0
varcov <- matrix(c(rep(c(1, rep(ro, nVar)), nVar-1),1), nrow=nVar)
means <- rep(Mean, nVar)
X <- rmnorm(100,means,varcov)
data <- standardizeDataset(data.frame(X))
## Joint function
dim <-c(2,4,3)
param <- parametersJointMoTBF(data, dimensions = dim)
P <- jointMoTBF(param)
P$Time
## Coefficients
coef(P)