RtreemixGPS-class(Rtreemix)
RtreemixGPS-class()所属R语言包:Rtreemix
Class "RtreemixGPS"
类“RtreemixGPS”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A class for describing the genetic progression scores (GPS) of a given set of patterns resulting from a waiting time simulation along the edges of the tree components of a given mutagenetic trees mixture model. It also contains GPS confidence intervals derived with the bootstrap method.
A类用于描述一个给定的模式导致轮候时间从一个给定的致突变树木混合模型树组件的边缘沿模拟的遗传进展评分(GPS)。它还包含了全球定位系统引导方法所得的信心区间。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("RtreemixGPS", Data, Model, SamplingMode, SamplingParam, GPS, gpsCI). The RtreemixGPS class contains the GPS values each assigned to the corresponding pattern from the dataset given by Data (the parent class). The GPS values are derived in a waiting time simulation for a specified sampling mode and its corresponding sampling parameter. Moreover, this class specifies the confidence intervals for the GPS values derived with the bootstrap method.
创建对象可以通过检测的形式new("RtreemixGPS", Data, Model, SamplingMode, SamplingParam, GPS, gpsCI)。 RtreemixGPS类包含GPS重视每从Data(父类)给定的数据集分配到相应的模式。推导出在一个指定的采样模式及其相应的采样参数的轮候时间模拟的GPS值。此外,这个类指定为引导方法得出的GPS值的置信区间。
The Data is an RtreemixData object that specifies the patterns for which the GPS values are calculated.
Data是RtreemixData对象指定为GPS值计算模式。
The Model is an RtreemixModel object that specifies the mutagenetic trees mixture model used for deriving the GPS values.
Model是RtreemixModel对象指定的致突变的树木混合模型用于推导GPS值。
The SamplingMode is a character that specifies the sampling mode ("constant" or "exponential") used in the waiting time simulations.
SamplingMode是character指定的等待时间模拟中使用的采样模式(“不变”或“指数”)。
The SamplingParam is a numeric that specifies the sampling parameter corresponding to the sampling mode given by SamplingMode.
SamplingParamnumeric指定SamplingMode采样模式给予相应的采样参数。
The GPS is a numeric vector that specifies the GPS value of each pattern in the given dataset Data. Its length equals the number of patterns in Data.
GPS是一个数字vector指定的每个模式在给定的数据集DataGPS值。其长度等于模式Data的数量。
The gpsCI is a numeric matrix that specifies the confidence intervals for each GPS value in the vector GPS. The number of rows equals the number of patients in Data and the number of columns equals 2. The first column gives the lower bound and the second column gives the upper bound of each confidence interval.
gpsCI是一个数字matrix指定矢量GPS每个GPS值的置信区间。行数等于患者Data的数量和列数等于2。给下界的第一列和第二列给每个置信区间的上限。
插槽----------Slots----------
Model: Object of class "RtreemixModel".
Model类"RtreemixModel"的对象。
SamplingMode: Object of class "character". It
SamplingMode类"character"的对象。它
SamplingParam: Object of class "numeric".
SamplingParam类"numeric"的对象。
GPS: Object of class "numeric". The length of GPS must be equal to the number
GPS类"numeric"的对象。 GPS长度必须等于多少
gpsCI: Object of class "matrix". It number of columns has to be 2 and the number of rows has to be equal to the
gpsCI类"matrix"的对象。列数为2的行数等于
延伸----------Extends----------
Class "RtreemixData", directly.
类"RtreemixData",直接。
方法----------Methods----------
GPS signature(object = "RtreemixGPS"): A method for obtaining the GPS values corresponding to the patterns in the
GPS的signature(object = "RtreemixGPS"):一个方法获得相应的模式的GPS值
Model signature(object = "RtreemixGPS"): A method for
型号signature(object = "RtreemixGPS")方法:
SamplingMode signature(object = "RtreemixGPS"): A method for obtaining the sampling mode ("constant" or
SamplingModesignature(object = "RtreemixGPS"):一个方法获得采样模式(“不变”或
SamplingParam signature(object = "RtreemixGPS"): A method for obtaining the sampling parameter corresponding to the
SamplingParamsignature(object = "RtreemixGPS"):获得相应的采样参数的方法
getData signature(object = "RtreemixGPS"): A method
getData方法signature(object = "RtreemixGPS"):一个方法
gpsCI signature(object = "RtreemixGPS"): A method for
gpsCIsignature(object = "RtreemixGPS")方法:
注意----------Note----------
The GPS examples are time consuming. They are commented out because of the time restrictions of the check of the package. For trying out the code please copy it and uncomment it.
GPS的例子是费时。他们注释掉,因为包检查的时间限制。试图代码请复制并取消它。
作者(S)----------Author(s)----------
Jasmina Bogojeska
参考文献----------References----------
参见----------See Also----------
RtreemixData-class, RtreemixModel-class, gps-methods, fit-methods, confIntGPS-methods
RtreemixData-class,RtreemixModel-class,gps-methods,fit-methods,confIntGPS-methods
举例----------Examples----------
## Generate a random RtreemixModel object with 3 components and 9 genetic events.[#生成与3个组成部分和9个遗传事件的随机RtreemixModel对象。]
#mod <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob = c(0.2, 0.8))[MOD < - 生成(k = 3,no.events = 9,noise.tree = TRUE,概率= C(0.2,0.8))]
#show(mod)[节目(MOD)]
## Generate an artificial dataset from the model mod.[#生成一个人工数据集模型MOD。]
#data <- sim(model = mod, no.draws = 300)[资料< - SIM卡(型号为= MOD,no.draws = 300)]
#show(data)[显示(数据)]
## Create an RtreemixGPS object by calculating the GPS for all possible patterns.[#创建一个计算所有可能的模式的GPS RtreemixGPS对象。]
#modGPS.all <- gps(model = mod, no.sim = 1000)[modGPS.all < - GPS(型号= MOD,no.sim = 1000)]
#show(modGPS.all)[展(modGPS.all)]
## Create an RtreemixGPS object by calculating the GPS for the data based on the model mod.[#创建一个基于模型MOD数据计算的GPS RtreemixGPS对象。]
#modGPS <- gps(model = mod, data = data, no.sim = 1000)[modGPS < - GPS(型号= MOD,数据=数据,no.sim = 1000)]
#show(modGPS)[展(modGPS)]
## See the slots from the RtreemixGPS object. [#插槽从RtreemixGPS对象。]
#Model(modGPS)[模型(modGPS)]
#SamplingMode(modGPS)[SamplingMode(modGPS)]
#SamplingParam(modGPS)[SamplingParam(modGPS)]
#GPS(modGPS)[GPS(modGPS)]
## See data.[#查看数据。]
#getData(modGPS)[的getData(modGPS)]
## Create an RtreemixGPS object by calculating GPS values for a given dataset[#创建一个给定的数据集GPS值计算RtreemixGPS对象]
## and their 95% confidence intervals using the bootstrap method.[#和95%置信区间,使用引导方法。]
#modGPS2 <- confIntGPS(data = data, K = 2, B = 10)[modGPS2 < - confIntGPS(数据=数据时,K = 2,乙= 10)]
#show(modGPS2)[展(modGPS2)]
## See the GPS values for the object modGPS2 and their confidence intervals.[#见的的对象modGPS2和置信区间的GPS值。]
#GPS(modGPS2)[GPS(modGPS2)]
#gpsCI(modGPS2)[gpsCI(modGPS2)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|