你好
我有多個不同的組和一個控件。我想通過X analysi做一個Fit Y,其中我在不同的圖上有不同的組,但在每個圖上都有控制組比較器。例如,使用grps B,C,D控制grp A和使用grps E,F,G控制grp A.希望在不需要使用隱藏/排除和多次繪製的情況下完成所有操作。
謝謝
R.
可能不是你想要的,但你可以嘗試使用本地數據過濾器的“收藏夾”(然後可能記錄過濾後的結果以將它們放在一個地方)。
要查看此信息,請運行以下代碼創建表,然後在表中運行已保存的腳本:
New Table( "Test",
Add Rows( 100 ),
New Script(
"Oneway",
Oneway(
Y( :Response ),
X( :Group ),
Automatic Recalc( 1 ),
Local Data Filter(
Add Filter(
columns( :Group ),
Display( :Group, Size( 160, 105 ), List Display )
),
Favorites(
"Group = Control, B, C, D"(Match( columns( :Group ),
Where( :Group == {1, 2, 3, 4} )
)),
"Group = Control, E, F, G"(Match( columns( :Group ),
Where( :Group == {1, 5, 6, 7} )
))
)
)
)
),
New Column( "Group",
Numeric,
"Nominal",
Format( "Best", 12 ),
Formula( Random Integer( 1, 7 ) ),
Value Labels(
{1 = "Control", 2 = "B", 3 = "C", 4 = "D", 5 = "E", 6 = "F", 7 = "G"}
),
Use Value Labels( 1 )
),
New Column( "Response",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 2 ),
Formula( Random Normal() )
)
)