oneid {clustra}R Documentation

Generates data for one id

Description

Generates data for one id

Usage

oneid(id, n_obs, type, intercept, start, end, smin, emax, noise)

Arguments

id

A unique integer.

n_obs

An integer number of observations to produce.

type

Response type, 1 is constant, 2 is a sin curve portion, and 3 is a sigmoid portion.

intercept

Used to set response at smin time value (not 0) and shift all responses accordingly.

start

Negative integer giving time of first observation.

end

Positive integer giving time of last observation.

smin

The smallest possible start value among all ids. Used to align with intercept and then dropped.

emax

The largest possible end value among all ids. Used to scale sin and sigmoid support.

noise

Standard deviation of zero mean Gaussian noise added to response functions.

Value

An n_obs by 4 matrix with columns id, time, response, true_group.


[Package clustra version 0.2.1 Index]