genData: genData

Description Usage Arguments Details Value Examples

View source: R/genData.R

Description

Generating a example dataset (TSD)

Usage

1
2
3
4
5
6
7
8
9
genData(
  ntot = 50,
  nsites = 10,
  beta = NULL,
  SIGMA = NULL,
  times = NULL,
  maxTime = 12,
  seed = NULL
)

Arguments

ntot

total number of observations (independent)

nsites

number of sites (multivariate response)

beta

Slope parameters (effect on time) for each sites

SIGMA

Covariance matrix

times

Time variable for each individuals

maxTime

maximum of time (upper limit)

seed

The user can set seed if wanted

Details

The function generates a dataset based on multivariate normal distribution where time (uniformly distributed) is a underlying explanatory variable

Value

A list with variables Data_Y (response), Data_Time

Examples

1
2
3
4
## Not run:  
dat = genData(seed=1)

## End(Not run)

oyvble/TSDpredict documentation built on June 28, 2020, 10:42 a.m.