다시 : 공식다음은 내가 생각해 낸 공식입니다.
If( Row() == 1,
value = 1;
counter = 1;
);
If( :X__1 != Lag( :X__1 ),
counter = 1;
While( :X__1 == :X__1[Row() + counter] | Row() + counter == N Rows( Current Data Table() ), counter++ );
value = counter;
,
value = .
);
value;
다시 : 공식여보세요,
이것은 잘 작동합니다!
이것이 무엇을 의미하는지 설명해 주시겠습니까?
(: X__1! = Lag (: X__1)이면
...
카운터 = 1; While (: X__1 == : X__1 [행 () + 카운터] | 행 () + 카운터 == N 행 (현재 데이터 테이블 ()), 카운터 ++);
값 = 카운터;
,
값 =.
);
값;
어디서 읽거나 배울 수 있습니까?
고마워요!
다시 : 공식문제가되는 스크립트의 기능 및 명령문에 대한 모든 정보는 도움말 풀다운 메뉴의 스크립팅 안내서에서 찾을 수 있습니다.
Help ==> JMP 설명서 라이브러리 스크립팅 안내서
다음은 수식을 이해하는 데 도움이되기를 바랍니다.
// The entire script will be run for each row in the
// in the data table
// On row 1 set default values
If( Row() == 1,
value = 1;
counter = 1;
);
// If the value of X__1 has changed check to see if
// more than one row has this new value of X__1
If( :X__1 != Lag( :X__1 ),
counter = 1;
While(
:X__1 == :X__1[Row() + counter]
|
Row() + counter == N Rows( Current Data Table() ),
counter
++);
value = counter;
,
// If this is not a row that has a new value of X__1
// then set the value to a missing value
value = .
);
// A JMP formula always takes the results of the last item
// processed, and makes that the value for the formula
// columns current row so by placing the variable that
// holds that value as the last item processed in the
// script, we ensure the correct value is placed into
// the data table
value;
공식여보세요,
각 개인의 연속 시리즈 길이를 파일에서 계산하고 싶습니다.
공식을 사용하여 JMP Pro에서 어떻게 계산할 수 있습니까?
손으로 나는 이미 열 시퀀스에 몇 가지 시퀀스를 입력했습니다.
X_4 = 시퀀스
감사.