Name

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)

 

This example gives the matrix: 

!   1.   !

!   4.   !

!   9.   !

!   16.  !

!   25.  !

!   36.  !

!   49.  !

!   64.  !

!   81.  !

!   100. !



               

AUTHOR

Eric Dubois 2002