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

R语言 sem包 pathDiagram()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 00:48:20 | 显示全部楼层 |阅读模式
pathDiagram(sem)
pathDiagram()所属R语言包:sem

                                        Draw Path Diagram
                                         绘制路径图

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

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

pathDiagram creates a description of the path diagram for a structural-equation-model object to be processed by the graph-drawing program dot, which can be called automatically; see Koutsofios and North (2002) and http://www.graphviz.org/. To obtain graphics output directly, the dot program must be on the system search path.
pathDiagram的结构方程模型的加工对象物的曲线图的绘图程序的点,它可以被称为自动创建的路径图的描述,见Koutsofios和北(2002)和http://www 。graphviz.org /。为了直接获得图形输出,点必须在系统搜索路径。


用法----------Usage----------


## S3 method for class 'sem'
pathDiagram(model, file, min.rank=NULL, max.rank=NULL,
        same.rank=NULL, variables=model$var.names, parameters=rownames(model$ram),
        ignore.double=TRUE, edge.labels=c("names", "values", "both"),
        size=c(8, 8), node.font=c("Helvetica", 14),
        edge.font=c("Helvetica", 10), rank.direction=c("LR", "TB"),
        digits=2, standardize=FALSE, output.type=c("graphics", "dot"),
        graphics.fmt="pdf", dot.options=NULL, ...)



参数----------Arguments----------

参数:model
a structural-equation-model object produced by sem.
一个结构方程模型对象sem。


参数:...
ignored.
忽略不计。


参数:file
a file name, given without an extension, to which to write the dot description of the path diagram and, by default, to use that to draw a graph of the model;  if not specified, the dot description is written to standard output (normally the R Console). Note that by default (see the output.type argument below), two files are written: a ".dot" file and a graphics file of type specified by the graphics.fmt argument (below); file may include a path specification.
一个文件名,不带扩展名,写点描述的路径图,默认情况下,用它来绘制图形的模型,如果不指定,点说明将写入标准输出(通常的R控制台)。请注意,默认情况下(见output.type参数),这两个文件被写入一个“点”文件和图形文件类型指定的graphics.fmt参数(如下图),“<X >可能包括路径规范。


参数:min.rank
a character string listing names of variables to be assigned minimum rank (order) in the graph; the names should be separated by commas.
一个字符串列表名称的变量被分配在图中的最低排名(顺序)的名称应以逗号分隔。


参数:max.rank
a character string listing names of variables to be assigned maximum rank in the graph; the names should be separated by commas.
一个字符串列表名称的变量被分配在图中的最高排名;的名称应以逗号分隔。


参数:same.rank
a character string or vector of character strings of variables to be assigned equivalent rank in the graph; names in each string should be separated by commas.
应以逗号分隔的字符串或矢量字符的字符串变量被分配同等职级图中的每个字符串中的名称。


参数:variables
variable names; defaults to the variable names in model. If specified, the variable names should be in the same order as in model.
变量名,默认的变量名model。如果指定的变量名应该是相同的顺序在model。


参数:parameters
parameter names; defaults to the parameter names in  model. If specified, the parameter names should be in the same order  as in model.
参数名称默认的参数名称model。如果指定参数的名称应该是相同的顺序在model。


参数:ignore.double
if TRUE, the default, double-headed arrows, representing variances and covariances, are not graphed.
如果TRUE,默认情况下,双箭头,表示方差和协方差,不以图形。


参数:edge.labels
"names" to label arrows with parameter names;  "values" to label arrows with parameter estimates, or "both".
"names"标注箭头的参数名称; "values"标记箭头参数估计,或"both"。


参数:size
the size of the graph, in inches.
的大小的曲线图,以英寸为单位。


参数:node.font
font name and point-size for printing variable names.
字体名称和尺寸打印的变量名。


参数:edge.font
font name and point-size for printing arrow names or values.
字体名称和大小的印刷箭头的名称或值。


参数:rank.direction
draw graph left-to-right, "LR", the default,  or top-to-bottom, "TB".
绘制图左到右,"LR",默认情况下,或顶部至底部的,"TB"。


参数:digits
number of digits after the decimal point (default, 2) to which  to round parameter estimates.
小数点后(默认情况下,2)圆的参数估计的数字。


参数:standardize
if TRUE, display standardized coefficients; default is FALSE.
如果TRUE,显示标准化系数,默认为FALSE。


参数:output.type
if "graphics", the default, both a ".dot" file and a graphics file will be created.
如果"graphics",默认情况下,既是“点”文件和图形文件将被创建。


参数:graphics.fmt
a graphics format recognized by the dot program; the default is "pdf"; graphics.fmt is also used for the extension of the graphics file that is created.
确认点程序的图形格式,默认为"pdf"graphics.fmt也可用于扩展的图形文件的创建。


参数:dot.options
options to be passed to the dot program, given as a character string.
选项要传递到的点的方案,给定为一个字符串。


值----------Value----------

NULL: pathDiagram is used for its side-effect, producing a graph description of the model.
NULL:pathDiagram使用其副作用,产生的图形描述的模型。


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


John Fox <a href="mailto:jfox@mcmaster.ca">jfox@mcmaster.ca</a>, Adam Kramer, and Michael Friendly



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

Drawing graphs with dot. http://www.graphviz.org/Documentation/dotguide.pdf.   

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

sem
sem


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


        ## Not run: [#不运行:]
# The Duncan, Haller, and Portes Peer-Influences Model[邓肯,哈勒和波特斯,对影响型号]

R.DHP <- readMoments(diag=FALSE, names=c('ROccAsp', 'REdAsp', 'FOccAsp',
                'FEdAsp', 'RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp'))
    .6247                                                              
    .3269  .3669                                                        
    .4216  .3275  .6404                                      
    .2137  .2742  .1124  .0839                                
    .4105  .4043  .2903  .2598  .1839                          
    .3240  .4047  .3054  .2786  .0489  .2220                    
    .2930  .2407  .4105  .3607  .0186  .1861  .2707              
    .2995  .2863  .5191  .5007  .0782  .3355  .2302  .2950        
    .0760  .0702  .2784  .1988  .1147  .1021  .0931 -.0438  .2087  

model.dhp <- specifyModel()
    RParAsp  -> RGenAsp, gam11,  NA
    RIQ      -> RGenAsp, gam12,  NA
    RSES     -> RGenAsp, gam13,  NA
    FSES     -> RGenAsp, gam14,  NA
    RSES     -> FGenAsp, gam23,  NA
    FSES     -> FGenAsp, gam24,  NA
    FIQ      -> FGenAsp, gam25,  NA
    FParAsp  -> FGenAsp, gam26,  NA
    FGenAsp  -> RGenAsp, beta12, NA
    RGenAsp  -> FGenAsp, beta21, NA
    RGenAsp  -> ROccAsp,  NA,       1
    RGenAsp  -> REdAsp,  lam21,  NA
    FGenAsp  -> FOccAsp,  NA,       1
    FGenAsp  -> FEdAsp,  lam42,  NA
    RGenAsp <-> RGenAsp, ps11,   NA
    FGenAsp <-> FGenAsp, ps22,   NA
    RGenAsp <-> FGenAsp, ps12,   NA
    ROccAsp <-> ROccAsp, theta1, NA
    REdAsp  <-> REdAsp,  theta2, NA
    FOccAsp <-> FOccAsp, theta3, NA
    FEdAsp  <-> FEdAsp,  theta4, NA

sem.dhp <- sem(model.dhp, R.DHP, 329,
    fixed.x=c('RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp'))
   
pathDiagram(sem.dhp, min.rank='RIQ, RSES, RParAsp, FParAsp, FSES, FIQ',
    max.rank='ROccAsp, REdAsp, FEdAsp, FOccAsp')
       
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-19 04:04 , Processed in 0.024092 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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