transdif Basic functions trimr

Grocer >> Basic functions > trend

trend

exponentiated time trend

CALLING SEQUENCE

[xmat]=trend(p,nobs)

PARAMETERS

Input

• p = exponent of the time-trend

• nobs = size of the matrix

Output

• xmat = (nobsx1) vector containing trend

DESCRIPTION

Produces a vector equal to a time-trend with exponentiation p.

EXAMPLE

ext=trend(2,10)
// returns
//!   1.   !
//!   4.   !
//!   9.   !
//!   16.  !
//!   25.  !
//!   36.  !
//!   49.  !
//!   64.  !
//!   81.  !
//!   100. !

AUTHOR

Eric Dubois 2002
transdif Basic functions trimr