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

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

[复制链接]
发表于 2012-9-29 20:58:10 | 显示全部楼层 |阅读模式
wcmd(Rwinsteps)
wcmd()所属R语言包:Rwinsteps

                                        Winsteps Command File
                                         Winsteps命令文件

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

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

wcmd creates a Winsteps command file object. as.wcmd converts a list to an object of class “wcmd”. read.wcmd and write.wcmd read and write command files to and from text files.
wcmd创建一个Winsteps的命令文件对象。 as.wcmd转换列表中的对象类“WCMD”。 read.wcmd和write.wcmd读取和写入命令文件和文本文件。


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


wcmd(title = "R2Winsteps Run", data, item1, ni, name1,
  namelen = item1 - name1, codes = 0:1, csv = "y", hlines = "y",
  tfile = NULL, arglist = NULL, anchor = NULL, labels = NULL,
  extra = NULL)

as.wcmd(x)

read.wcmd(filename)

write.wcmd(cmd, filename)



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

参数:title
a title for the Winsteps run, as a string  
一个标题为Winsteps运行,作为一个字符串


参数:data
data set filename  
数据集文件名


参数:item1
integer, fixed width column number of the first item  
整数,固定宽度的列数的第一个项目


参数:ni
integer, number of items  
整数,条目的数量


参数:name1
integer, fixed width column number of the first character of the person name  
整数,固定宽度的列数的人的名字的第一个字符


参数:namelen
integer, number of characters in person name, defaulting to the difference between item1 and name1  
整数,数人名称的字符违约的的区别item1和name1的,


参数:codes
vector of response codes with default c(0, 1)  
矢量的响应代码默认c(0, 1)


参数:csv
character indicating how output files should be written, as csv ("y", default) or as tab delimited ("n"). In order to read in and manipulate files using R2Winsteps, this must be "y", and the Winsteps default which includes headers must not change (hlines = "y")  
字符,指示如何输出文件应该被写入,为csv("y",默认)或制表符分隔("n")。为了阅读,和操作文件使用R2Winsteps的,这一定是"y",并Winsteps默认情况下,其中包括报头不能改变(hlines = "y")


参数:hlines
character indicating whether or not to include header lines in output files, with default "y", as required for using functions such as read.ifile and read.pfile  
字符,指示是否在输出文件中包括头线,使用默认"y",需要使用功能如read.ifile和read.pfile的


参数:tfile
numeric vector of table numbers to be included in output  
表号码被包括在输出的数值向量


参数:arglist
optional list of additional arguments to be appended to the command file, where the name of each list element will be pasted into a string with the value of the element, as name = "value"  
可选的额外的参数将被添加到列表的命令文件,其中每个列表元素的名称将被粘贴到一个字符串的元素的值,作为name = "value"


参数:anchor
optional matrix of item anchor values, with item sequences in column 1 and anchor values in column 2  
可选的矩阵项目的锚定值,第2栏第1列和锚定值项序列


参数:labels
optional string vector of item labels, to be pasted after the &END statement in the command file  
可选的字符串向量的项目标签,粘贴后&END语句的命令文件


参数:extra
optional vector of additional commands, similar to arglist, but where element names are ignored and each element is simply pasted into the command file separated by new lines  
可选的矢量额外的命令,类似arglist,但其中的元素名称都将被忽略,而每个元素简单地粘贴到命令文件的新行分隔


参数:x
list of arguments to be converted into an object of class “wcmd”  
参数列表转换成一个对象类“WCMD”


参数:filename
path to which the command file will be written, or from which it will be read  
路径,命令文件将被写入,或从它将会读取


参数:cmd
command file object to be written  
命令文件要写入的对象


Details

详细信息----------Details----------

The Winsteps command file specifies the structure of a persons by items matrix and includes all arguments necessary to run the model. Arguments without defaults, which are currently required in the “wcmd” class, are data, item1, ni, and name1. Winsteps accepts a variety of arguments and data specification options within the command file and only a selection of these are currently supported by the “wcmd” class, not including those necessary for polytomous models. Thus, for the greatest flexibility, the command file should be written by hand. For details, see the Winsteps manual.
Winsteps命令文件指定一个人的项目矩阵的结构,包括所有必要的运行模型的参数。没有默认值的参数,这是目前需要在“WCMD”级,是data,item1,ni,name1。 Winsteps接受在命令文件中的各种参数和数据规范选项,只有一个选择目前所支持的这些“WCMD”类,不包括那些必要的多级评分模型。因此,为了最大的灵活性,该命令文件应被写入的手。有关详细信息,请参阅Winsteps手册。

Using write.wcmd, the command file is written to filename by separating all arguments and item labels with new lines. As all arguments are read and written as text strings, any argument with integer values such as codes may also be specified as a string, e.g., codes = "01".
使用write.wcmd,命令文件写入到filename通过分离所有参数和新的生产线的项目标签。由于所有参数读取和写入文本字符串,任何参数的整数值如codes也可能被指定为一个字符串,例如,codes = "01"。

The command file can also be used to facilitate reading and writing of data files in R. See read.wdat and write.wdat for details.
也可以用命令文件,以方便阅读和写作中的数据文件R. read.wdat和write.wdat的详细信息,见。


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

Returns a command file as a list of arguments
返回命令文件作为一个参数列表


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



Anthony Albano <a href="mailto:tony.d.albano@gmail.com">tony.d.albano@gmail.com</a>




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

winsteps
winsteps


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


# Create[创建]
tempcmd <- tempfile()
cmd <- wcmd(title = "R2Winsteps Example", data = "example.dat",
  item1 = 1, ni = 15, name1 = 16, namelen = 5,
  labels = paste("i", 1:15, sep = ""), hlines = "Y")

# Write and read[写和读]
write.wcmd(cmd, tempcmd)
cmd2 <- read.wcmd(tempcmd)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 20:34 , Processed in 0.027538 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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