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

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

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

                                        Modification Indices for Structural Equation Models
                                         结构方程模型的修正指标

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

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

mod.indices calculates modification indices (score tests)  and estimated parameter changes for the fixed and constrained  parameters in a structural equation model fit by multinormal maximum likelihood.
mod.indices计算修正指标(得分测试),为固定和约束的参数在结构方程模型的拟合multinormal最大似然估计参数的变化。


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


## S3 method for class 'objectiveML'
modIndices(model, duplicated, deviance=NULL, ...)
## S3 method for class 'msemObjectiveML'
modIndices(model, ...)

## S3 method for class 'modIndices'
print(x, n.largest=5, ...)
## S3 method for class 'msemModIndices'
print(x, ...)

## S3 method for class 'modIndices'
summary(object, round=2,
    print.matrices=c("both", "par.change", "mod.indices"), ...)
## S3 method for class 'msemModIndices'
summary(object, ...)



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

参数:model
an object of class objectiveML or msemObjectiveML, produced by the sem function.
类的一个对象objectiveML或msemObjectiveML,sem功能。


参数:object, x
an object of class modIndices or msemModIndices, produced by the  modIndices function.
类的一个对象modIndices或msemModIndices,modIndices功能。


参数:n.largest
number of modification indices to print in each of the A and P matrices of the RAM model.
的修正指标,以打印在每个A和P的RAM模型的矩阵。


参数:round
number of places to the right of the decimal point in printing  modification indices.
一些地方中的小数点右边的印刷修正指标。


参数:print.matrices
which matrices to print: estimated changes in the fixed parameters, modification indices, or both (the default).
矩阵打印:估计在固定的参数,修正指标,或两者(默认值)的变化。


参数:duplicated, deviance
for internal use.
供内部使用。


参数:...
arguments to be passed down.
参数传递下来。


Details

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

Modification indices are one-df chi-square score (“Lagrange-multiplier”) test statistics for the fixed and constrained parameters in a structural equation model. They may be regarded as an estimate of the improvement in the likelihood-ratio chi-square statistic for the model if the corresponding parameter is respecified as a free parameter. The modIndices function also estimates the change in the value of a fixed or constrained parameter if the parameter is respecified as free. When several parameters are set equal, modification indices and estimated changes are given for all but the first. Modification indices and estimated parameter changes for currently free parameters are given as NA.
修正指标是一个DF卡方得分(“拉格朗日乘数”)的固定和结构方程模型的约束条件下参数的检验统计量。他们可能会被视为卡方统计模型的似然比的改善估计被作为自由参数respecified的如果相应的参数。 modIndices功能也估计的固定或限制的参数值的变化,如果参数respecified免费的。当几个参数设置相等,修正指标和预计的变化,给出了所有,但第一个。修正指标,目前是免费的参数估计参数的变化NA。

The method employed is described in Saris, Satorra, and Sorbom (1987) and Sorbom (1989).
所采用的方法是纱丽,Satorra,和Sorbom(1987)和Sorbom(1989)中描述的。


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

modIndices returns an object of class modIndices with the following elements:
modIndices返回一个对象类modIndices包含下列元素:


参数:mod.A
modification indices for the elements of the A matrix.
修改的指数为A矩阵的元素。


参数:mod.P
modification indices for the elements of the P matrix.
修改的指数为P矩阵的元素。


参数:par.A
estimated parameter changes for the elements of the A matrix.
估计参数的变化A矩阵的元素。


参数:par.P
estimated parameter changes for the elements of the P matrix.
估计参数的变化P矩阵的元素。


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


John Fox <a href="mailto:jfox@mcmaster.ca">jfox@mcmaster.ca</a> and Michael Culbertson



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

The detection and correction of specification errors in structural equation models. Pp. 105&ndash;129 in Clogg, C. C. (ed.), Sociological Methodology 1987. American Sociological Association.
Model modification. Psychometrika 54, 371&ndash;384.

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

sem
sem


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


# In the first example, readMoments() and specifyModel() read from the[在第一个例子中,readMoments()和specifyModel()读出的]
# input stream. This example cannot be executed via example() but can be entered[输入流。这个例子不能被执行通过例如(),但可以输入]
# at the command prompt. The example is repeated using file input;[在命令提示符下。这个例子是重复使用的文件输入;]
# this example can be executed via example(). [这个例子中,可以执行通过例如()。]
        ## Not run: [#不运行:]
# This example is adapted from the SAS manual[这个例子是改编自SAS手动]

S.wh <- readMoments(names=c('Anomia67','Powerless67','Anomia71',
                                    'Powerless71','Education','SEI'))
   11.834                                    
    6.947    9.364                           
    6.819    5.091   12.532                    
    4.783    5.028    7.495    9.986            
   -3.839   -3.889   -3.841   -3.625   9.610     
  -21.899  -18.831  -21.748  -18.775  35.522  450.288

model.wh <- specifyModel()
    Alienation67   ->  Anomia67,      NA,   1
    Alienation67   ->  Powerless67,   NA,   0.833
    Alienation71   ->  Anomia71,      NA,   1
    Alienation71   ->  Powerless71,   NA,   0.833
    SES            ->  Education,     NA,   1     
    SES            ->  SEI,           lamb, NA
    SES            ->  Alienation67,  gam1, NA
    Alienation67   ->  Alienation71,  beta, NA
    SES            ->  Alienation71,  gam2, NA
    Anomia67       <-> Anomia67,      the1, NA
    Anomia71       <-> Anomia71,      the1, NA
    Powerless67    <-> Powerless67,   the2, NA
    Powerless71    <-> Powerless71,   the2, NA
    Education      <-> Education,     the3, NA
    SEI            <-> SEI,           the4, NA
    Anomia67       <-> Anomia71,      the5, NA
    Powerless67    <-> Powerless71,   the5, NA
    Alienation67   <-> Alienation67,  psi1, NA
    Alienation71   <-> Alienation71,  psi2, NA
    SES            <-> SES,           phi,  NA

sem.wh <- sem(model.wh, S.wh, 932)
modIndices(sem.wh)
       
## End(Not run)[#(不执行)]
       
# The following example can be executed via example():[通过实例(),可以执行下面的例子:]

etc &lt;- file.path(.path.package(package="sem")[1], "etc") # path to data and model files[数据和模型文件的路径]

(S.wh <- readMoments(file=file.path(etc, "S-Wheaton.txt"),
                                        names=c('Anomia67','Powerless67','Anomia71',
                            'Powerless71','Education','SEI')))
(model.wh <- specifyModel(file=file.path(etc, "model-Wheaton-1.txt")))                    
(sem.wh <- sem(model.wh, S.wh, 932))
modIndices(sem.wh)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-19 07:38 , Processed in 0.027114 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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