coef.jointmotbf: Coefficients of a '"jointmotbf"' object

View source: R/joint.R

coef.jointmotbfR Documentation

Coefficients of a "jointmotbf" object

Description

Extracts the parameters of a joint MoTBF density.

Usage

## S3 method for class 'jointmotbf'
coef(object, ...)

Arguments

object

An MoTBF function.

...

Other arguments, unnecessary for this function.

Value

A "numeric" vector with the parameters of the function.

See Also

parametersJointMoTBF and jointMoTBF

Examples

## Generate a dataset
data <- data.frame(X1 = rnorm(100), X2 = rnorm(100))

## Joint function
dim <-c(2,4)
param <- parametersJointMoTBF(data, dimensions = dim)
P <- jointMoTBF(param)
P$Time

## Coefficients
coef(P)

#############################################################################
## MORE EXAMPLES ############################################################
#############################################################################

## Generate a dataset
data <- data.frame(X1 = rnorm(100), X2 = rnorm(100), X3 = rnorm(100))
 
## Joint function
dim <-c(2,4,3)
param <- parametersJointMoTBF(data, dimensions = dim)
P <- jointMoTBF(param)
P$Time

## Coefficients
coef(P)


MoTBFs documentation built on April 18, 2022, 5:06 p.m.