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

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

  [复制链接]
发表于 2012-9-23 11:08:11 | 显示全部楼层 |阅读模式
mids2spss(mice)
mids2spss()所属R语言包:mice

                                        Export Multiply Imputed Data to SPSS
                                         出口乘以估算的数据,以SPSS

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

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

Converts a mids object into a format recognized by SPSS, and writes the data and the SPSS syntax files.
转换mids对象通过SPSS识别的格式,将数据写入和SPSS语法文件。


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


mids2spss(imp, filedat = "midsdata.txt", filesps = "readmids.sps",
path = getwd(), sep = "\t", dec = ".", silent = FALSE)



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

参数:imp
The imp argument is an object of class mids, typically produced by the mice() function.  
imp,mids功能通常是由mice()参数是一个类的对象。


参数:filedat
A character string describing the name of the output data file.  
甲描述输出数据文件的名称的字符串。


参数:filesps
A character string describing the name of the output syntax file.  
一个字符串,描述的输出语法文件的名称。


参数:path
A character string containing the path of the output file. The value in path is appended to filedat and filesps. By default, files are written to the current R working directory. If path=NULL then no file path appending is done.  
一个字符串,包含输出文件的路径。在path的价值被附加到filedat和filesps。默认情况下,文件被写入到目前的R工作目录。如果path=NULL然后是没有文件路径追加。


参数:sep
The separator between the data fields.  
的数据字段之间的分隔符。


参数:dec
The decimal separator for numerical data.  
小数点分隔符的数值数据。


参数:silent
A logical flag stating whether the names of the files should be printed.   
一个逻辑标志,说明是否应印有该文件的文件名。


Details

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

This function automates most of the work needed to export a mids object to SPSS. It uses a modified version of writeForeignSPSS() from the foreign package. The modified version allows for a choice of the field and decimal separators, and makes some improvements to the formatting, so that the generated syntax file is amenable to the INCLUDE statement in SPSS.
此功能自动完成大部分导出mids对象,以SPSS的工作。它采用的是修改后的版本的writeForeignSPSS()foreign包。修改后的版本可以选择的领域和小数分隔符,并提出了一些改进的格式,从而使生成的语法文件是适合的INCLUDE声明中SPSS。

Below are some things to pay attention to.
下面是一些要注意的事情。

The SPSS syntax file has the proper file names and separators set, so in principle it should run and read the data without alteration. SPSS is more strict than R with respect to the paths. Always use the full path, otherwise SPSS may not be able to find the data file.
SPSS语法文件具有正确的文件名和分离器,所以在原则上它应该运行和读取数据,而无需更改。 SPSS是更严格的R的路径。一定要使用完整路径,否则SPSS可能不能够找到的数据文件。

Factors in R translate into categorical variables in SPSS. The internal coding of factor levels used in R is exported. This is generally acceptable for SPSS. However, when the data are to be combined with existing SPSS data, watch out for any changes in the factor levels codes. The read.spss() in package foreign for reading .sav uses its own internal numbering scheme 1,2,3,... for the levels of a factor. Consequently, changes in factor code can cause discrepancies in factor level when re-imported to SPSS. The solution is to manually recode the factor level in SPSS.
因素R转化为分类变量SPSS。用于R因子水平的内部编码是出口。这通常是可以接受的SPSS。然而,当数据要结合现有的SPSS数据,留意任何变化因子水平的代码。 read.spss()在包foreign阅读.sav使用它自己的内部编号方案1,2,3,...水平的一个因素。因此,因子代码的变化可能会导致因子水平的差异时,重新导入到SPSS。解决的办法是手动重新编码因子水平SPSS。

SPSS will recognize the data set as a multiply imputed data set, and do automatic pooling in procedures where that is supported. Note however that pooling is an extra option only available to those who licence the MISSING VALUES module. Without this licence, SPSS will still recognize the structure of the data, but not do any pooling.
SPSS将识别为多重插补数据集的数据集,并做自动池在程序的支持。但是请注意,池是一个额外的选项,只提供给那些许可证MISSING VALUES模块的。没有这个许可证,SPSS仍然会认识到结构化的数据,但不做任何缓冲池。


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

The return value is NULL.
返回值是NULL。


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



Stef van Buuren, dec 2010.




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

mids
mids

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-18 11:08 , Processed in 0.022742 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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