standardizedCoefficients(sem)
standardizedCoefficients()所属R语言包:sem
Standardized Coefficients for Structural Equation Models
结构方程模型的标准化系数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions calculate standardized regression coefficients for structural equation models. The function stdCoef is simply an abbreviation for standardizedCoefficients.
这些功能的结构方程模型计算标准化回归系数。的功能stdCoef是一个简单的缩写standardizedCoefficients。
用法----------Usage----------
standardizedCoefficients(object, ...)
## S3 method for class 'sem'
standardizedCoefficients(object, digits = 5, oneheaded = TRUE, twoheaded = TRUE, ...)
## S3 method for class 'msem'
standardizedCoefficients(object, ...)
stdCoef(...)
参数----------Arguments----------
参数:object
an object of class sem or msem returned by the sem function.
类的一个对象sem或msem返回sem功能的。
参数:digits
number of digits for printed output.
用于印刷输出的数字数。
参数:oneheaded
standardize path coefficients? Default is TRUE.
标准化路径系数?默认是TRUE。
参数:twoheaded
standardize variances and covariances? Default is TRUE.
规范方差和协方差?默认是TRUE。
参数:...
arguments to pass down.
参数传递下来。
值----------Value----------
Returns a data frame with the coefficients, labelled both by parameter names and by arrows in the path diagram for the model. The msem (multigroup) method computes and prints the standardized coefficients for each group; it does not return a useful result.
返回的系数的数据框,由参数名称和由模型的路径图中的箭头标记。 msem(多组)方法计算并打印标准化系数为每个组,它不会返回一个有用的结果。
(作者)----------Author(s)----------
John Fox <a href="mailto:jfox@mcmaster.ca">jfox@mcmaster.ca</a> and Adam Kramer
参考文献----------References----------
Structural Equations With Latent Variables. Wiley.
参见----------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: [#不运行:]
# Duncan, Haller, and Portes peer-influences model[邓肯,哈勒和波特斯,对影响模型]
R.DHP <- readMoments(diag=FALSE, names=c("ROccAsp", "REdAsp", "FOccAsp",
"FEdAsp", "RParAsp", "RIQ", "RSES", "FSES", "FIQ", "FParAsp"))
.6247
.3269 .3669
.4216 .3275 .6404
.2137 .2742 .1124 .0839
.4105 .4043 .2903 .2598 .1839
.3240 .4047 .3054 .2786 .0489 .2220
.2930 .2407 .4105 .3607 .0186 .1861 .2707
.2995 .2863 .5191 .5007 .0782 .3355 .2302 .2950
.0760 .0702 .2784 .1988 .1147 .1021 .0931 -.0438 .2087
model.dhp <- specifyModel()
RParAsp -> RGenAsp, gam11, NA
RIQ -> RGenAsp, gam12, NA
RSES -> RGenAsp, gam13, NA
FSES -> RGenAsp, gam14, NA
RSES -> FGenAsp, gam23, NA
FSES -> FGenAsp, gam24, NA
FIQ -> FGenAsp, gam25, NA
FParAsp -> FGenAsp, gam26, NA
FGenAsp -> RGenAsp, beta12, NA
RGenAsp -> FGenAsp, beta21, NA
RGenAsp -> ROccAsp, NA, 1
RGenAsp -> REdAsp, lam21, NA
FGenAsp -> FOccAsp, NA, 1
FGenAsp -> FEdAsp, lam42, NA
RGenAsp <-> RGenAsp, ps11, NA
FGenAsp <-> FGenAsp, ps22, NA
RGenAsp <-> FGenAsp, ps12, NA
ROccAsp <-> ROccAsp, theta1, NA
REdAsp <-> REdAsp, theta2, NA
FOccAsp <-> FOccAsp, theta3, NA
FEdAsp <-> FEdAsp, theta4, NA
sem.dhp <- sem(model.dhp, R.DHP, 329,
fixed.x=c('RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp'))
standardizedCoefficients(sem.dhp)
## End(Not run)[#(不执行)]
# The following example can be executed via example():[通过实例(),可以执行下面的例子:]
etc <- file.path(.path.package(package="sem")[1], "etc") # path to data and model files[数据和模型文件的路径]
(R.DHP <- readMoments(file=file.path(etc, "R-DHP.txt"),
diag=FALSE, names=c("ROccAsp", "REdAsp", "FOccAsp",
"FEdAsp", "RParAsp", "RIQ", "RSES", "FSES", "FIQ", "FParAsp")))
(model.dhp <- specifyModel(file=file.path(etc, "model-DHP.txt")))
(sem.dhp <- sem(model.dhp, R.DHP, 329,
fixed.x=c('RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp')))
standardizedCoefficients(sem.dhp)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|