data.coor2: Generate regular data

View source: R/misc-functions.R

data.coor2R Documentation

Generate regular data

Description

Generate regular longitudinal samples.

Usage

data.coor2(n, mu.c = 10, np = 100, mu.f, phi)

Arguments

n

the number of samples

mu.c

the mean

np

the number of observations per curve

mu.f

the mean function

phi

a list of length 2 containing two "eigenfunctions"

Details

Generate regular longitudinal samples. The observations per curve are seq(0, 1, length=np). It uses a Karhunen-Loeve representations uing the mean function mu.f and (2) eigenfunctions (in phi). The scores are rnorm(0, 25) and rnorm(0, 1).

Value

A list with two components:

x

A list with the n vectors of observations (one per curve)

pp

A corresponding list with the vectors of times at which observations were taken


msalibian/sparseFPCA documentation built on Nov. 26, 2022, 4:47 a.m.