의 열을 채우려고 합니다. 슬로프_1 그리고 Intercept_1(1000행) ~에서 슬로프 그리고 가로채기(36행) , 각각에 따라 주기 2(1000행) 성냥 사이클 3 (36행)
입력할 수식을 제안할 수 있습니까? 슬로프_1 그리고 가로채기_1 ?

다음과 같이 할 수 있습니다.
If( Row() == 1, :Slopes, :Cycle 2 == Lag( :Cycle 2 ), Lag( :Slopes_1 ), :Slopes )
예로서:
Names Default To Here( 1 );
dt = Open( "$Sample_data/big class.jmp" );
dt << New Column( "height_1",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( If( Row() == 1, :height, :age == Lag( :age ), Lag( :height_1 ), :height ) )
);
이를 수행하는 방법에는 여러 가지가 있습니다. 다음은 연관 배열을 사용하는 방법입니다.
Names Default To Here(1);
// Sample data
dt = New Table("Untitled",
Add Rows(9),
New Column("C3", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, ., ., ., ., ., .])),
New Column("S",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([0.11, 0.12, 0.13, ., ., ., ., ., .])
),
New Column("I",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([1.1, 1.2, 1.3, ., ., ., ., ., .])
),
New Column("C2", Numeric, "Continuous", Format("Best", 12), Set Values([1, 1, 1, 2, 2, 2, 3, 3, 3])),
New Column("S1", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., ., ., ., ., ., .])),
New Column("I1", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., ., ., ., ., ., .]))
);
wait(1);
// Formulas start
Column(dt, "S1") << Formula(
As Constant(
aa_slope_c3 = Associative Array(Eval List(:c3 << get values), Eval List(:s << get values));
);
aa_slope_c3[:c2];
);
Column(dt, "I1") << Formula(
As Constant(
aa_intercept_c3 = Associative Array(Eval List(:c3 << get values), Eval List(:i << get values));
);
aa_intercept_c3[:c2];
);
// If data is always like this, can be simplified to
dt << New Column("ss", Numeric, Continuous, Formula(
:S[:C2]
));
dt << New Column("ii", Numeric, Continuous, Formula(
:I[:C2]
));
수식이 필요하지 않은 경우 조인/가상 조인을 사용할 수도 있습니다.

수식은 스크립트 또는 첨부된 데이터 테이블에서 찾을 수 있습니다.