在腳本中使用Simulate [JMP Pro]我想用仿真功能 JMP Pro為多種不同場景進行功率分析。有沒有辦法通過腳本啟動模擬,因為手動完成這個過程需要做很多工作。
提前致謝,
塞巴斯蒂安
Re:在腳本中使用Simulate [JMP Pro]我正在嘗試使用分區平台,但分區平台REDO腳本添加了一個“Initial Splits”選項,其中包含原始運行的擬合。 模擬不會重新運行與所有可變曲線的整體擬合,而是僅使用來自原始模型的變量。 這會影響模擬的結果 - 即它們完全錯誤。 那有什麼辦法嗎?
這是我正在使用的代碼:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Diabetes.jmp" );
dt << new column("Permuted Y Binary",character, formula(Col Stored Value( :Y Binary, Col Shuffle() )));
dt << run formulas;
Pa = Partition(
Y( :Y Binary ),
X(
:Age,
:Gender,
:BMI,
:BP,
:Total Cholesterol,
:LDL,
:HDL,
:TCH,
:LTG,
:Glucose
),
Informative Missing( 1 ),
ROC Curve( 1 ),
K Fold Crossvalidation( 5 ),
go
);
Pa << finish;
Report( Pa )["Receiver Operating Characteristic"][Table Box(1)] << Simulate(100, Out(:Y Binary), In(:Permuted Y Binary));
Re:在腳本中使用Simulate [JMP Pro]非常感謝伊恩!Re:在腳本中使用Simulate [JMP Pro]這顯示了基本思想(基於排列測試文檔中的一個示例):
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Analgesics.jmp" );
dt << New Column( "pain shuffled",
Numeric,
"Continuous",
Format( "Fixed Dec", 4, 2 ),
Formula( Col Stored Value( :pain, Col Shuffle() ) )
);
ow = dt << Oneway( Y( :pain ), X( :drug ), Means( 1 ), Mean Diamonds( 1 ) );
Report(ow)[TableBox(2)] << simulate(1000, 999, Out(:pain), In(:pain shuffled));