麻烦跟踪样本注释以在大型数据集上执行一样本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>