response: Generate data with varying response functions

Description Usage Arguments Value Examples

View source: R/ResponseFunction.R

Description

Generate data with varying response functions

Usage

1
response(input.t, params = list())

Arguments

input.t,

vector of t values with which to create data

params,

list of parameters which are specified for each different model

Value

Returns a vector of response values for the input.t values.

Examples

1
2
3
4
5
6
7
8
9
stepwise_params = list(
   method = 'step',
   max.height = 2,
   baseline = 5,
   duration = 7)
 t <- seq(-2, 10, by=.001)
 y <- response( t, stepwise_params )
 plot(t, y)
 @export

KodyGelvin/STA485_2018 documentation built on May 17, 2019, 10:11 p.m.