I've been trying to fit the following model in Matlab:
Where a is a constant, M is a vector of trend parameters and A a cross-factor interaction matrix. I've been looking at vgxset but it doesn't have the option to add a trend estimation.
Any ideas? Thanks,