스크립팅 질문: 역 예측 공식을 기존 열에 강제 저장안녕하세요 여러분,
"역 예측 공식 저장"이라는 선형 모델의 "곡선 적합" 출력을 정의되고 이미 존재하는 열(예: "예측 농도")에 강제로 저장하고 싶습니다. 이것을 스크립팅하면 가능합니까? 그 이유는 새 데이터가 정기적으로 들어오기 때문에 업데이트된 역 예측 공식을 계산 및 저장하고 데이터 세트의 기존 공식을 덮어쓰기 위해 스크립트를 시작해야 하기 때문입니다. 스크립팅 라이브러리에서 이 예제를 찾았지만 저는 데이터의 기존 역 예측 공식을 덮어쓰는 방법을 모릅니다.
Names Default To Here( 1 );
dt = Open(
"$SAMPLE_DATA/Nonlinear Examples/Bioassay.jmp"
);
obj = dt <<
Fit Curve(
Y( :Toxicity ),
X( :log Conc ),
Group( :formulation )
);
obj <<
Fit Logistic 4P(
Save Inverse Prediction Formula
);<BR /><BR />col1 = column (5);<BR />col1 << Set name ("Prediction Concentration");<BR />
감사합니다,
건배, 발레리
Re: 스크립팅 질문: 저장 역 예측 공식을 기존 열에 강제 적용다음은 한 가지 방법입니다.
Names Default To Here( 1 );
// Suppose "Prediction Concentration" is the column that should hold teh formula
dt = Open( "$SAMPLE_DATA/Nonlinear Examples/Bioassay.jmp" );
dt << NewColumn("Prediction Concentration", Numeric, Continuous, Values(1::NRow(dt)));
Wait(3);
// Do the analysis, the formula column is saved as a new column at the end
obj = dt << Fit Curve( Y( :Toxicity ), X( :log Conc ), Group( :formulation ) );
obj << Fit Logistic 4P( Save Inverse Prediction Formula );
// Copy the formula to the column you want
form = Column(dt, NCol(dt)) << getFormula;
Column(dt, "Prediction Concentration") << Formula(NameExpr(form));
Wait(3);
// Delete the last column generated by 'Fit Curve'
dt << deleteColumn(NCol(dt));