| Financial Toolbox™ | ![]() |
DesignSUR = convert2sur(Design, Group)
Design | A matrix or a cell array that depends on the number of data series NUMSERIES.
|
Group | Contains information about how data series are to be grouped, with separate parameters for each group. Specify groups either by series or by groups:
|
DesignSUR = convert2sur(Design, Group) converts a multivariate normal regression model into a seemingly unrelated regression model with a specified grouping of the data series. DesignSUR is either a matrix or a cell array that depends on the value of NUMSERIES:
If NUMSERIES = 1, DesignSUR = Design, which is a NUMSAMPLES-by-NUMPARAMS matrix.
If NUMSERIES > 1 and NUMGROUPS groups are to be formed, Design is a cell array with NUMSAMPLES cells, where each cell contains a NUMSERIES-by-(NUMGROUPS * NUMPARAMS) matrix of known values.
The original collection of parameters that are common to all series are replicated to form collections of parameters for each group.
This example has ten series in three groups, and two model parameters. Suppose
Group 1 has series 1, 3, 4, 8.
Group 2 has series 2, 6, 10.
Group 3 has series 5, 7, 9.
Either:
Group = [ 1, 2, 1, 1, 3, 2, 3, 1, 3, 2];
or
Group = cell(3,1);
Group{1} = [1, 3, 4, 8];
Group{2} = [2, 6, 10];
Group{3} = [5, 7, 9];A regression with DesignSUR would have 3 x 2 = 6 model parameters.
![]() | chfield | convertto | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |