이것에 몇 가지 문제가 있습니다. 선형 맞춤 매개변수를 가져오려고 할 때 계속 오류가 발생합니다.
표준 YvsX 데이터 세트가 있지만 4개의 다른 '그룹화 기준' 열이 있습니다. 추출을 시도할 때(여러 가지 방법을 시도했습니다) 다음과 같은 오류가 계속 발생합니다.
무슨 생각이야? 네 개의 열을 단일 열로 연결한 다음 해당 단일 연결로 분할하려고 시도했지만 여전히 오류가 발생합니다.
//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]);


