computeMarginalData-methods(flowPlots)
computeMarginalData-methods()所属R语言包:flowPlots
Method computeMarginalData from Class "StackedData"
从类“StackedData方法computeMarginalData”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a method of the StackedData class which computes the marginal data which can be stored in the marginalData slot of a StackedData object. This method relies on the marker data slot being assigned in the StackedData object.
此功能的StackedData类的方法,计算可以在存储一个StackedData对象marginalData槽的边缘数据。这种方法依赖于标记数据被在StackedData对象分配的插槽。
用法----------Usage----------
computeMarginalData(object, byVarNames, idVarName, percentVarName, groupVarName)
参数----------Arguments----------
参数:object
an object of the StackedData class
的StackedData类的对象
参数:byVarNames
character; the names of the variables specifying the subsets of interest in the data
字符;指定感兴趣的数据子集的变量的名称
参数:idVarName
character; the name of the id variable in the data
性格中的数据的id变量的名称
参数:percentVarName
character; the name of the variable holding the percentages to be summed when computing the pfd summary data
字符;持有的百分比计算的PFD汇总数据时,要总结的变量的名称
参数:groupVarName
character; the name of the variable specifying the group assignment in the data
字符;变量名中指定的数据组分配
值----------Value----------
data frame of marginal data
边缘数据的数据框
方法----------Methods----------
signature(object = "StackedData", byVarNames = "character", idVarName = "character", percentVarName = "character", groupVarName = "character") Compute the marginal data.
signature(object = "StackedData", byVarNames = "character", idVarName = "character", percentVarName = "character", groupVarName = "character")计算边际的数据。
作者(S)----------Author(s)----------
N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA
参见----------See Also----------
StackedData, marginalData
StackedData,marginalData
举例----------Examples----------
# Load stacked data[载入堆叠数据]
data(adultsNeonates)
# Create a stacked data object[创建一个堆叠的数据对象]
stackedDataObject = new("StackedData", stackedData=adultsNeonates)
# Compute the marker data and set the marker data slot[计算标记的数据和设置标记的数据槽]
markerNames = c("TNFa","IL6","IL12","IFNa")
markers = computeMarkers(markerNames,includeAllNegativeRow=TRUE)
markers(stackedDataObject) = markers
# Compute the marginal data and set the marginal data slot[计算边际的数据和设置边缘的数据槽]
byVarNames = c("stim", "concGroup", "cell")
marginalData = computeMarginalData(stackedDataObject, byVarNames, "id", "percentAll", "group")
marginalData(stackedDataObject) = marginalData
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|