Sto riscontrando alcuni problemi con questo, continuo a ricevere errori quando provo a estrarre i parametri di adattamento lineare.
Ho un set di dati YvsX standard, ma con 4 diverse colonne "raggruppa per". Quando provo a eseguire l'estrazione (ho provato molti metodi diversi), continuo a ricevere errori come questo:
Qualche idea che succede con questo? Ho provato a concatenare le quattro colonne in una singola colonna e quindi a dividerle per quella singola concat e ottenere ancora errori.
//make report
biv = Bivariate(
Y( :Y ),
X( :X ),
By( :A, :B, :C, :D</img> ),
Fit Line( {Line Color( "Red" )} )
);
//list the reports
rbiv = biv << report;
//count the number of reports
nBy = N Items( rbiv );
//array of as many rows as reports. 1col, all set to zero.
vc = J( nBy, 1, 0 );
//Create output table and fill with estimates
dtOut = New Table( "Regression parameters",
New Column( "Group", Character ),
New Column( "Intercept", numeric ),
New Column( "Slope", numeric ),
addrows( nBy ));
//grab the values
For( j = 1, j <= nBy, j++,
Estimates = rbiv[j]["Linear Fit"]["Parameter Estimates"][1][3] << get as matrix;
:Group[j] = groups[j];
:Intercept[j] = Estimates[1];
:Slope[j] = Estimates[2]);


