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

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

[复制链接]
发表于 2012-9-30 09:27:49 | 显示全部楼层 |阅读模式
SimDataDist-class(simsem)
SimDataDist-class()所属R语言包:simsem

                                        Class "SimDataDist"
                                         类“SimDataDist”

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

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

This class will provide the distribution of a dataset.
这个类将提供一个数据集的分布。


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

Objects can be created by simDataDist function. It can also be called from the form new("SimDataDist", ...).
对象可以创建的simDataDist功能。它也可以被称为,从形式new("SimDataDist", ...)。


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




p: Number of variables
p:变量的数量




dist: The list of marginal distribution objects, which will be used in a normal copula.
dist:边缘分布对象的列表,将被用于在一个正常的copula。




keepScale: Transform back to retain the mean and standard deviation of a variable equal to the model implied mean and standard deviation (with sampling error)
keepScale:转换保留一个变量的模型暗示的均值和标准差的均值和标准差(抽样误差)




reverse: To mirror each variable or not. If TRUE, reverse the distribution of a variable (e.g., from positive skewed to negative skewed).
reverse:每个变量或镜像。如果TRUE,扭转分配的变量(例如,从积极的偏向负偏斜)。


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

summaryTo summarize the object
summaryTo总结的对象

runTo create data from an object. There are three additional required objects: n = sample size, m = mean of variables, cm = covariance matrix of variables.
runTo创建从一个对象的数据。有三个额外所需的对象:N =样本大小,M =变量的平均值,CM =变量的协方差矩阵。

plotDistTo plot a density distribution (for one variable) or a contour plot (for two variables). If the object has more than two variables, the var argument can be used to select the index of plotting variables. For two variables, the default is to have correlation of 0. To change a correlation, the r argument can be used. The xlim and ylim can be specified to set the ranges of variables.
plotDistTo图(一个变量)的密度分布的等高线图(两个变量)。如果对象有两个以上的变量,var参数可用于选择绘制变量的索引。对于两个变量,默认情况下是有相关性为0。要改变的相关性,r参数都可以使用。 xlim和ylim可以指定设置变量的范围。

extractExtract elements from an object. The next argument is the position of the object to be extracted.
从一个对象extractExtract元素。下一个参数是要被提取的对象的位置。


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



Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)




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

simDataDist The constructor of this class.       
simDataDist这个类的构造函数。


实例----------Examples----------


showClass("SimDataDist")

chisq3 <- simChisq(3)
chisq8 <- simChisq(8)
dist <- simDataDist(chisq3, chisq8)
dist2 <- extract(dist, 2)

m <- c(0, 0)
cm <- matrix(c(1, 0.5, 0.5, 1), 2, 2)
n <- 20
dat <- run(dist, n, m, cm)

plotDist(dist, r=0.2)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 05:08 , Processed in 0.069562 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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