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

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

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

                                        Running Winsteps
                                         运行Winsteps

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

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

The winsteps function sends a command file to the program Winsteps and returns the resulting item and person information, optionally saving them as output files. as.winsteps converts its arguments into an object of class “winsteps”.
函数发送winsteps命令文件的程序Winsteps,并返回结果的项目和个人信息,可以选择输出文件并将其保存为。 as.winsteps将其参数转换,到一个对象类“winsteps”。


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


winsteps(cmd, cmdfile = "cmdfile", outfile = "outfile",
  ifile = "ifile", pfile = "pfile", newdir = getwd(),
  run = TRUE, windir = "winsteps")

as.winsteps(cmd, ifile, pfile, daterun, comptime)



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

参数:cmd
a command file object, created using wcmd  
命令文件对象,使用wcmd


参数:cmdfile
a path to the command file, when running winsteps, or a list to be converted into a command file object, when running as.winsteps  
命令文件的路径,运行时winsteps,或者被转换成一个命令文件对象的列表,当运行as.winsteps


参数:outfile
a path to which the standard Winsteps output will be written  
将被写入到标准Winsteps输出路径


参数:ifile
a path to the item file, when running winsteps, or a list to be converted into an ifile object, when running as.winsteps  
的资料文件的路径,当运行winsteps,或一个列表,以被转换成一个ifile的对象,在运行时as.winsteps


参数:pfile
a path to the person file, when running winsteps, or a list to be converted into a pfile object, when running as.winsteps  
的路径的人的文件,当运行winsteps,或一个列表,以被转换到一个pfile对象,当运行as.winsteps


参数:newdir
an optional, temporary, directory for reading and writing files, defaulting to the current working directory  
一个可选的,暂时的,用于读取和写入文件的目录,默认为当前工作目录


参数:run
boolean, with default TRUE, indicating whether or not Winsteps should be run. If FALSE, the Winsteps files cmdfile, ifile, and pfile are read in, assuming they are each specified as strings of length 1.  
布尔值,默认情况下TRUE,指示是否Winsteps应该运行。如果FALSE,Winsteps文件cmdfile的,ifile的和pfile文件被读出,假设它们是每个指定为长度为1的字符串。


参数:windir
the directory for the Winsteps program, which is sent to the Windows command prompt. If the directory is already included in the Windows PATH variable, the default "winsteps" will suffice  
目录为的Winsteps的程序,发送到Windows命令提示符。如果该目录已经包含在Windows的PATH变量,默认的"winsteps"就足够了


参数:daterun
date and time the model was run  
日期和时间的模式运行


参数:comptime
time required to run the model  
运行模式所需的时间


Details

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

Winsteps is commercial software for analyzing item response data, primarily through applications of the Rasch model, a 1 parameter item response theory model. The winsteps function interacts with Winsteps in batch mode and retrieves the two main output files produced by the program, referred to as an ifile, which contains item output, and a pfile, which contains person output.
Winsteps是商业软件项目反应数据进行分析,主要是通过应用Rasch模型,参数项目反应理论模型。 winsteps函数交互Winsteps在批处理模式下,检索的两个主要方案,称为作为ifile的,其中载有资料的输出,以及一个pfile,其中包含的人的输出所产生的输出文件。

The only argument required by winsteps is a command file, which can be supplied directly as cmd, a command file object of class “wcmd”, or which can be referenced with the filename cmdfile. If both are included, the object is written to the filename.
所要求的winsteps唯一的参数是一个命令文件,它可以提供直接cmd,对象类“WCMD”,或命令文件可以被引用的文件名cmdfile的。如果两者都包括在内,对象被写入的文件名。

cmdfile, outfile, ifile, and pfile are all used to  write the corresponding Winsteps files when run = TRUE. Regardless of whether Winsteps is run or not, the cmdfile, ifile, and pfile will be read into R and returned. If the defaults are retained for these arguments the files will be deleted once the function has completed without errors.
cmdfile,outfile,ifile和pfile都用来写相应的Winsteps文件时,run = TRUE。无论是否Winsteps运行或不,cmdfile,ifile和pfile会被读入R和返回。如果保留默认值,这些参数的文件将被删除的功能已经完成,没有错误。

Winsteps is called by invoking the operating system using the system command. windir can be used to specify the Winsteps directory folder (e.g., "c:/program files/winsteps"), should the system have a hard time finding it.
Winsteps被称为system使用命令调用操作系统。 windir可以使用到指定的Winsteps的目录文件夹(例如,“C :/程序文件/ winsteps”),如果系统有一个很难找到它。


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

A list object of class “winsteps” containing:
一个List对象的类“winsteps”,包含:


参数:cmd
the command file
命令文件


参数:ifile
the item file
该项目文件


参数:pfile
the person file
人的文件


参数:daterun
date and time the model was run
日期和时间的模式运行


参数:comptime
time required to run the model
运行模式所需的时间


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



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




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



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

wcmd, ifile, pfile
wcmd,ifile,pfile


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


# Simulate scores for 15 items and 100 people[模拟分数15项100人]
set.seed(82911)
b <- seq(-3, 3, length = 15)
theta <- rnorm(100, 1)
rmat <- data.frame(ifelse(rirf(b, theta)$p > runif(1500), 1, 0))

# Item and person labels[项目和人的标签]
colnames(rmat) <- paste("i", 1:15, sep = "")
rmat$name <- paste("p", 1:100, sep = "")

# Create a command file object[创建一个命令文件对象]
cmd <- wcmd(title = "R2Winsteps Example", data = "example.dat",
  item1 = 1, ni = 15, name1 = 16, namelen = 5,
  labels = paste("i", 1:15, sep = ""), hlines = "Y")

# The last two steps require access to a local directory and[最后两个步骤需要访问到本地目录]
# are not run[不运行]

# Write the data to file[将数据写入文件]
# write.wdat(rmat, cmd)[write.wdat(格式时,CMD)]

# Run Winsteps, with default filenames, not saving the[默认的文件名,运行Winsteps,而不是节约的]
# command file or other output to file[命令文件或其他输出到文件]
# out &lt;- winsteps(cmd)[出< -  winsteps(CMD)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 18:57 , Processed in 0.019277 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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