Skip to content
Prev 298917 / 398503 Next

Specify model with polynomial interaction terms up to degree n

Hello,

Another way is to cbind the vectors 'a' and 'b', but this needs argument 
'raw' set to TRUE.

poly(cbind(a, b), 6, raw=TRUE)

To the OP: is this time series related? With 6 being a lag or test 
(e.g., Tsay, 1986) order? I'm asking this because package nlts has a 
function for this test up to order 5 and it uses poly().

Hope this helps,

Rui Barradas

Em 02-07-2012 16:04, David Winsemius escreveu: