그룹에 맞는 항목에 액세스여보세요,
나는 맞는 그룹 (matrix, list ...)이 무엇인지 이해하지 못한다.
특정 그룹의 특정 객체에 명령을 보내려면 어떻게해야합니까?
감사.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Group = Fit Group(
Bivariate (Y( :weight ),X( :height )),
Oneway (Y( :weight ),X( :age )),
Oneway (Y( :weight ),X( :sex )));
// 첫 번째 편도에서 quantile을 실행하는 방법은 무엇입니까?
Group[Oneway(2)] << Quantiles(1);//this doesn't work
다시 : 그룹 항목에 맞는 액세스두 가지 방법이 있습니다.
- 그룹 내의 각 개체에 대한 참조를 저장합니다.
- 그룹의 표시 트리에서 개체를 찾습니다.
Names default to here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
//The easy way: save references to each element
Group = Fit Group(
bv1 = Bivariate ( Y( :weight ),X( :height ) ),
ow1 = Oneway (Y( :weight ),X( :age )),
ow2 = Oneway (Y( :weight ),X( :sex ))
);
//And send messages like you normally would
ow1 << Quantiles(1);
//The harder way is to find the analysis in the tree structure:
((Group << Find( OutlineBox(5) ) ) << Get Scriptable Object) << Quantiles(1);
//Here is how I put the second method together:
//Find the OutlineBox to reference, note the 'helpkey' to verify that you at the right spot
Group << Show Tree Structure;
//Get a reference to the child outlinebox
Group << Find( OutlineBox(5) );
//Get the object that is normally returned from that function, similar to ow2
((Group << Find( OutlineBox(5) ) ) << Get Scriptable Object)