麻煩跟踪樣本註釋以在大型數據集上執行一樣本t檢驗你好,
我正在嘗試編寫一個腳本,該腳本將確定針對特定主題(unique_subject_id)收集的數據(XYZ%)是否與參考人群(例如“ test_article_type”列中的車輛)顯著不同。 另外,對於給定的主題,可以在多個位置(變量)收集多個數據。
運行單樣本t檢驗似乎很簡單,但是我正在努力尋找一種方法來在分發平台中使用“ XYZ%”運行“測試均值”選項時攜帶“ unique_subject_id和變量”信息使用for循環的每個“ unique_subject_id_variables”的值。
我想不出一種方法來將'unique_subject_id_variables'標籤保留到分發平台中,以使生成的Pvalue返回到父表中而不會造成混淆。
任何建議將不勝感激。
最好,
塞巴斯蒂安
// The distribution for the "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" is assessed for each variables separately for the 'vehicle' samples only ('test_article_type')
//This is used as the starting point to assess whether each "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" values for every unique_subject_id is similar or not to the a reference population (ie 'vehicle') for their respective variables.
// the unique_subject_id_variables is not carried over in the pvalue report table so there is a risk of mix up when merging the Pvalue back to the main table
Names Default To Here( 1 );
Clear Log();
try(data Table( "one sample t-test validation Anonymized")<<CLOSE window=""></CLOSE>腳本編寫回复:麻煩跟踪樣本註釋以在大型數據集上執行一樣本t檢驗因此,您的腳本正在執行您認為的操作,但只是希望所有內容保持相同的順序就沒有什麼風險。 或者至少讓我緊張。
我做了一些小調整,使之成為帶標籤的表格。 寬格式不是理想的格式,但是可以將其堆疊並連接回您的數據。 我讓您整理一下。
也有關於這條線的評論
//By( :variables )// does not appear to be used by the platform
只是一個註釋“:variables”是指數據表中的一列,但是該表沒有具有該名稱的列,因此它不會執行任何操作。
這是JSL,希望它有意義
// The distribution for the "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" is assessed for each variables separately for the 'vehicle' samples only ('test_article_type')
//This is used as the starting point to assess whether each "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" values for every unique_subject_id is similar or not to the a reference population (ie 'vehicle') for their respective variables.
// the unique_subject_id_variables is not carried over in the pvalue report table so there is a risk of mix up when merging the Pvalue back to the main table
Names Default To Here( 1 );
Clear Log();
try(data Table( "one sample t-test validation Anonymized")<<CLOSE window=""> |t|", "Prob > t", "Prob < t"} )
);
variable = column(dt,3)<<GET values=""></GET></CLOSE>