Learn R Programming

MECfda (version 0.2.0)

functional_variable-class: Function-valued variable data.

Description

A s4 class that represents data of a function-valued variable. The format is \(f_i(t),\ t\in\Omega=[t_0,t_0 + T]\) where \(i\) is the observation (subject) index, \(t\) represents the measurement (time) points.

Arguments

Slots

X

a matrix \((x_{ij})_{n\times m}\), where \(x_{ij} = f_i(t_j)\), represents the value of \(f_i(t_j)\), each row represent an observation (subject), each column is corresponding to a measurement (time) point.

t_0

start of the domain (time period), \(t_0\). Default is 0.

period

length of the domain (time period), \(T\). Default is 1.

t_points

sequence of the measurement points, \((t_1,\dots,t_m)\). Default is \(t_k = t_0 + \frac{(2k-1)T}{2(m+1)}\).

Author

Heyang Ji

Examples

Run this code
X = array(rnorm(12),dim = 4:3)
functional_variable(X=X,period = 3)

Run the code above in your browser using DataLab