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

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

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

                                         Random Allocation of Items to Parcels in a Structural Equation Model
                                         随机分配地段的项目结构方程模型

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

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

This function generates a given number of randomly generated item-to-parcel allocations, fits a model to each allocation, and provides averaged results over all allocations.
这个函数生成一个随机生成的项目对包裹分配,每次分配适合的模型,并提供所有分配的平均结果。


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


parcelAllocation(nPerPar, facPlc, nAlloc=100, syntax, dataset, names='default', leaveout=0, ...)



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

参数:nPerPar
A list in which each element is a vector corresponding to each factor indicating sizes of parcels. If variables are left out of parceling, they should not be accounted for here (there should NOT be parcels of size "1").
一个列表,其中的每个元素是一个向量,相应的各因素的大小包裹。如果变量被排除在parceling,他们不应该被占了这里(不应该有幅大小为“1”)。


参数:facPlc
A list of vectors, each corresponding to a factor, specifying the variables in that factor (whether included in parceling or not). Either variable names or column numbers. Variables not listed will not be modeled or included in output datasets.  
向量的列表,每一个相对应的一个因素,在该因子(无论是包括在parceling或不)指定的变量。无论是变量名或列号。未列出的变量将不被模拟,包括在输出数据集。


参数:nAlloc
The number of random allocations of items to parcels to generate.        
包裹的随机分配的项目的数目来生成。


参数:syntax
lavaan syntax. If substituted with a file name, parcelAllocation will print output data sets to a specified folder rather than analyzing using lavaan (note for Windows users: file path must be specified using forward slashes).
lavaan语法。如果文件名取代,parcelAllocation将打印输出数据,设置到指定的文件夹,而不是分析使用lavaan(注意:对于Windows用户:文件路径必须使用正斜杠)。


参数:dataset
Data set. Can be file path or R object (matrix or dataframe). If the data has missing values multiple imputation before parceling is recommended.
数据集。可以是文件路径或R对象(矩阵或数据框)。如果数据有遗漏值的多重插补,前parceling建议。


参数:names
(Optional) A character vector containing the names of parceled variables.
(可选)字符的矢量包含包包变量的名称。


参数:leaveout
A vector of variables to be left out of randomized parceling. Either variable names or column numbers are allowed.
变量的矢量被冷落随机parceling。无论是变量名或列号是不允许的。


参数:...
Additional arguments to be passed to lavaan
其他的参数传递给lavaan


Details

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

This function implements the random item to parcel allocation procedure described in Sterba (2011) and Sterba and MccCallum (2010). The function takes a single data set with item level data, randomly assigns items to parcels, fits a structural equation model to the parceled data (using lavaan), and repeats this process for a user specified number of random allocations. Results from all fitted models are summarized and output. For further details on the benefits of the random allocation of itesm to parcels see Sterba (2011) and Sterba and MccCallum (2010).
此功能实现了随机项,斯特巴(2011年)和斯特巴和MccCallum(2010年)中描述的包裹分配过程。该函数接受一个单一的数据项数据,随机分配项目的包裹,符合结构方程模型的包包的数据(使用lavaan),并随机分配一个用户指定数量的重复这个过程。所有拟合模型的结果进行了总结和输出。 ITESM包裹的随机分配的好处的进一步详情,请参阅斯特巴(2011年)和斯特巴和MccCallum(2010年)。


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


参数:Estimates
A data frame containing results related to parameter estimates with columns corresponding to parameter names, average parameter estimates across allocations, the standard deviation of parameter estimates across allocations, the minimum parameter estimate across allocations, the maximum parameter estimate across allocations, the range of parameter estimates across allocations, and the proportions of allocations in which the parameter estimate is significant.
一个数据框包含相关的参数估计值的列对应的参数名称,整个分配的平均参数估计的结果,横跨分配的参数估计值的标准偏差,最小的参数估计整个分配,分配的的最大参数估计整个范围的参数估计整个分配,比例分配的参数估计是显着的。


参数:SE
A data frame containing results related to standard errors with columns corresponding to parameter names, average standard errors across allocations, the standard deviation of standard errors across allocations, the minimum standard error across allocations, the maximum standard error across allocations, and the range of standard errors across allocations.
一个数据框包含相关的标准列对应的参数名,平均,标准偏差的错误,分配的标准,不同的分配,跨分配的最高标准错误和范围标准的最低标准错误的标准分配的错误,错误的结果分配的错误,。


参数:Fit
A data frame containing results related to model fit with columns corresponding to fit index names, the average of each index across allocations, the standard deviation of each fit index across allocations, the minimum of each fit index across allocations, the maximum of each fit index across allocations, and the range of each fit index across allocations.
一个数据框包含与对应的列,以适应索引名,平均每个索引整个分配,整个分配各拟合指数的标准差,整个分配各拟合指数最低的,最大的各拟合指数模型拟合的结果整个分配,以及各拟合指数的范围横跨分配。


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



Corbin Quick (University of Kansas; <a href="mailto:corbinq@ku.edu">corbinq@ku.edu</a>)
Alexander M. Schoemann (University of Kansas; <a href="mailto:schoemann@ku.edu">schoemann@ku.edu</a>)




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




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


#Fit 3 factor CFA to simulated data.[适合3个因子CFA模拟数据。]
#Each factor has 9 indicators that are randomly parceled into 3 parcels[每一个因素都9个指标是随机瓜分成3个包裹]
#Lavaan syntax for the model to be fit to parceled data[Lavaan语法的模型是合适的包包的数据]
syntax <- 'La =~ V1 + V2 + V3
           Lb =~ V4 + V5 + V6
'
#Parcel and fit data 20 times. The actual parcel number should be higher than 20 times.[包裹和拟合数据的20倍。实际的包裹数量应高于20倍。]
name1 <- colnames(simParcel)[1:9]
name2 <- colnames(simParcel)[10:18]
parcelAllocation(list(c(3,3,3),c(3,3,3)), list(name1, name2), nAlloc=20, syntax=syntax, dataset=simParcel)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-18 19:49 , Processed in 0.050274 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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