找回密码
 注册
查看: 640|回复: 0

R语言 Rtreemix包 RtreemixStats-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 13:44:28 | 显示全部楼层 |阅读模式
RtreemixStats-class(Rtreemix)
RtreemixStats-class()所属R语言包:Rtreemix

                                        Class "RtreemixStats"
                                         类“RtreemixStats”

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The RtreemixStats class contains the (weighted, log) likelihoods for a given dataset (specified by the parent class) derived from the probability distribution induced by an underlying mutagenetic trees mixture model.   
类RtreemixStats包含一个给定的数据集(加权,log)来自一个潜在的致突变树木混合模型诱导的概率分布的似然性(由指定的父类)。


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("RtreemixStats",     Data, Model, LogLikelihoods, WLikelihoods). The class RtreemixStats extends the RtreemixData class and specifies (log, weighted) likelihoods for these data derived from a given RtreemixModel. The number of the genetic events in the patterns from the given dataset (Data) has to be equal to the number of genetic events in the branchings from the mixture model given by the slot Model. When having the weighted likelihoods, one can easily derive the responsibilities of the model components in Model for generating the patterns in the specified dataset (Data).
创建对象可以通过检测的形式new("RtreemixStats",     Data, Model, LogLikelihoods, WLikelihoods)。类RtreemixStats扩展从一个给定的RtreemixDataRtreemixModel类和指定(log,加权)获得这些数据的似然性。在给定的数据集模式的遗传事件(Data)等于在从插槽Model混合模型的分枝的遗传事件。加权似然性时,人们可以很容易地推导出产生的模式,在指定的数据集(Model)Data模型组件的责任。

The Data is an RtreemixData object that specifies the patterns for which the likelihoods are calculated.
Data是RtreemixData对象指定的似然性的计算模式。

The Model is an RtreemixModel object that specifies the mutagenetic trees mixture model used for deriving the likelihoods of the given data.
Model是RtreemixModel对象,指定用于推导给定数据的似然性,致突变的树木混合模型。

The LogLikelihoods is a numeric vector that contains the log-likelihoods of the patterns in Data. Its length equals the sample size, i.e. the number of patients in Data.
LogLikelihoods是一个数字vector包含log的模式在Data似然性。它的长度等于样本大小,即患者Data的数量。

The WLikelihoods is a numeric matrix that specifies the weighted likelihoods of each pattern in the given dataset Data. The number of columns in WLikelihoods equals the number of tree components in Model and the number of rows equals the number of patients in Data.   
WLikelihoods是一个数字matrix指定在给定的数据集Data每种模式的加权似然性。数列在WLikelihoods等于Model树组件的数量和行数等于患者Data的数量。


插槽----------Slots----------




Model: Object of class "RtreemixModel".
Model类"RtreemixModel"的对象。




LogLikelihoods: Object of class "numeric". The length of LogLikelihoods must be equal to the number of patients of the dataset specified with the parent
LogLikelihoods类"numeric"的对象。的LogLikelihoods长度必须等于指定的父数据集的患者人数




WLikelihoods: Object of class "matrix". The number of rows must be equal to the sample size of the dataset specified with the parent "RtreemixData" class. The number of columns must be identical with the number of tree components in
WLikelihoods类"matrix"的对象。行数必须与父"RtreemixData"类中指定的数据集的样本大小相等。列数必须与树组件的数量相同


延伸----------Extends----------

Class "RtreemixData", directly.
类"RtreemixData",直接。


方法----------Methods----------




LogLikelihoods signature(object = "RtreemixStats"): A method for obtaining the log-likelihoods of the patterns in
LogLikelihoodssignature(object = "RtreemixStats")获得数似然性模式的方法:




Model signature(object = "RtreemixStats"): A method for obtaining the mutagenetic trees mixture model used for
型号signature(object = "RtreemixStats"):一个方法获得的致突变的树木混合模型用于




WLikelihoods signature(object = "RtreemixStats"): A method for obtaining the weighted likelihoods of the patterns in
WLikelihoodssignature(object = "RtreemixStats"):获取模式的加权似然性方法




getData signature(object = "RtreemixStats"): A method for obtaining the dataset specified with the
getData方法signature(object = "RtreemixStats"):获取指定的数据集的方法




getResp signature(object = "RtreemixStats"): A method for computing the matrix of responsibilities for the trees to generate each of the samples in the parent dataset from their weighted
getRespsignature(object = "RtreemixStats"):计算树木的责任矩阵生成每个样品从父数据集的加权方法


作者(S)----------Author(s)----------


Jasmina Bogojeska



参考文献----------References----------



参见----------See Also----------

RtreemixData-class, RtreemixModel-class, fit-methods, likelihoods-methods
RtreemixData-class,RtreemixModel-class,fit-methods,likelihoods-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))
show(mod)

## Draw a data sample from the model mod.[#绘制从模型国防部的数据样本。]
data <- sim(model = mod, no.draws = 400)

## Create an RtreemixStats object.[#创建RtreemixStats的对象。]
mod.stat <- likelihoods(model = mod, data = data)
show(mod.stat)

## See the slots from the RtreemixStats object.[#插槽从RtreemixStats对象。]
Model(mod.stat)
LogLikelihoods(mod.stat)
WLikelihoods(mod.stat)
## See data.[#查看数据。]
getData(mod.stat)
## Calculate the responsibilities from the weighted likelihoods.[#计算加权似然性的责任。]
getResp(mod.stat)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-24 17:47 , Processed in 0.020466 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表