bootsempls(semPLS)
bootsempls()所属R语言包:semPLS
Bootstrap a PLS path model
启动PLS路径模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Bootstraps a PLS path model in a sempls object (as returned by the sempls method).
白手起家的PLS路径模型在sempls对象(返回sempls方法“)。
用法----------Usage----------
bootsempls(object, nboot=200, start=c("ones", "old"), method=
c("ConstructLevelChanges", "IndividualSignChanges",
"Standard"), verbose=TRUE, strata, ...)
## S3 method for class 'bootsempls'
print(x, digits=3, ...)
## S3 method for class 'bootsempls'
summary(object, type=c("perc", "bca", "norm", "basic", "none"),
level=0.95, ...)
## S3 method for class 'summary.bootsempls'
print(x, na.print, digits = 3, ...)
## S3 method for class 'bootsempls'
densityplot(x, data, pattern="beta", subset=NULL, ...)
## S3 method for class 'bootsempls'
parallelplot(x, data, pattern="beta", subset=NULL, reflinesAt,
col=c("grey", "darkred", "darkred", "black"), lty=c("solid",
"solid","dashed", "dotted"), ...)
参数----------Arguments----------
参数:object
An object of class sempls as returned by the method sempls.
一个对象的类sempls的返回的方法sempls。
参数:nboot
The number of bootstrap replications; the default is 200.
引导复制的数量,默认是200。
参数:start
A character value defining the initialisation of outer weights. If
Acharacter定义的初始化外的权重值。如果
start="ones", then the outer weights for each block are initialised by ones.
start="ones",然后对每个块的外的权重被初始化的。
start="old", the final outer weights taken from the sempls object are used for initialisation.
start="old"外的权重,最后从sempls对象是用于初始化。
参数:method
A character value, which can take the values:
Acharacter值,它的值可以取:
"ConstructLevelChanges" (default): The vector of loadings for each LV in each resample is compared to the corresponding vector of loadings in the original sample. The signs of the weights, and consequently the signs of the loadings, are reversed if the absolute value of the sum differences between estimated loadings obtained from the original sample and the estimated loadings obtained from the resample is bigger than the absolute value of the sum sums of the latter, see Tenenhaus et al (2005).
"ConstructLevelChanges"(默认值):负荷再采样,在每一个为每个LV的向量相比,在原始样品的载荷对应的向量。迹象的权重,因此负荷的迹象,相反,如果从原始样本获得和重采样得到的估计负荷的估计负荷的总和之间的差异的绝对值的总和的绝对值的总和是大于后者,请参阅Tenenhaus等人(2005)。
"IndividualSignChanges": not implemented yet.
"IndividualSignChanges":尚未实现。
"Standard": No compensation for sign changes of resampled statistics.
"Standard":任何补偿的重采样的统计数据为标志的变化。
参数:verbose
A logical indicating, whether progress of bootstrap shall be displayed.
Alogical表明,是否应显示进度,引导。
参数:x
An object of class bootsempls and summary.bootsempls respectively.
的对象类bootsempls和summary.bootsempls分别的。
参数:na.print
A character substituting values not to be printed.
Acharacter值替换不被打印出来。
参数:digits
Controls the number of digits to print.
控制打印的数字。
参数:type
Type of bootstrapped confidence intervals to compute; the default is "perc" (percentile); see boot.ci for details.
自举置信区间的计算类型,默认为"perc"(百分位数); boot.ci的详细信息。
参数:strata
An integer vector or factor specifying the strata for multi-sample problems. If the argument is not provided, all data is assumed to come from the same sample. For details, see boot.ci.
指定一个整数向量或因子阶层为多样品的问题。如果没有提供参数,假设所有的数据都来自同一个样品。有关详细信息,请参阅boot.ci。
参数:level
Level for confidence intervals; default is 0.95.
置信区间,默认的级别是0.95。
参数:...
Arguments to be passed down to other methods.
参数被传递给其他方法。
参数:data
The data is not used because the bootsempls object already contains the required data.
data不使用的,因为bootsempls对象已经包含了所需的数据。
参数:pattern
A regular expression passed on to grep. It is helpful to easily identify a set of coefficients, e.g. pattern="beta" plots the path coefficients only.
正则表达式传递给grep。很容易地确定的一组系数,例如它是有帮助的pattern="beta"绘制的路径系数只。
参数:subset
Index or character vector of coefficients to include. Note, that subset overrides pattern.
包括指数或字符的系数向量。请注意,这subset覆盖pattern。
参数:reflinesAt
A vector of values at which to plot reference lines into the parallel cooordinates.
值的向量绘制参考线到并行cooordinates。
参数:col
Colors for bootstrap statistics, sample statistic, lower and upper bootstrap confidence levels and reference lines.
引导统计,样本的统计,上,下自举置信水平和基准线的颜色。
参数:lty
Line type for bootstrap statistics, sample statistic, lower and upper bootstrap confidence levels and reference lines.
引导统计,样本的统计,上,下自举置信水平和基准线的线路类型。
Details
详细信息----------Details----------
boot.sempls implements the nonparametric bootstrap, assuming an independent random sample. Convergence failures in the bootstrap resamples are discarded (and a warning printed); 10 consecutive convergence failures result in an error. You can use the boot function in the boot package for more complex sampling schemes and additional options.
boot.sempls实现的非参数引导,假设一个独立的随机样本。在引导重采样被丢弃的收敛失败(警告打印); 10连续收敛失败将导致错误。您可以使用boot功能在开机包更复杂的抽样方案和其他选项。
值----------Value----------
boot.sempls returns an object of class bootsempls, which inherits from class boot, supported by the boot package. The returned object contains the following components:
boot.sempls返回一个类的对象bootsempls,它继承自类boot,支持的boot包。返回的对象包含以下组件:
参数:t0
The estimated parameters in the model fit to the original data set.
模型中的参数的估计适合原始数据集。
参数:t
a matrix containing the bootstrapped estimates, one bootstrap replication per row.
矩阵中的自举的估计,每行一个引导复制。
参数:data
The data frame containing the data to which the model was fit.
数据框包含的数据的模型适合。
参数:seed
The value of .Random.seed when boot.sempls was called.
值.Random.seedboot.sempls被称为。
参数:statistic
The function used to produce the bootstrap replications; this is always the local function refit from boot.sempls.
该函数用来生产的引导复制,这始终是本地函数refitboot.sempls。
参数:sim
Always set to "ordinary"; see the documentation for the boot function.
始终设置为"ordinary",参见的文档boot功能。
参数:stype
Always set to "i"; see the documentation for the boot function.
始终设置为"i",参见的文档boot功能。
参数:call
The call of the boot.sem function.
的呼唤boot.sem功能。
参数:tryErrorIndices
Contains the indices for each resample, which returned try-error.
包含每个重采样的指数,它返回try-error。
参数:clcIndices
When the method ConstructLevelChanges is used, it stores the indices of the blocks of MVs for which a sign change occured.
当的方法ConstructLevelChanges时,它的索引存储块的标志变化发生的MV。
参数:bootIndices
A matrix containing the indices of the converged bootstrap samples as rows.
一个矩阵包含的指标融合的bootstrap样本行。
参数:outer_weights
A martrix containing, as rows, the outer weights for each bootsrap sample.
一个martrix含行,为每个bootsrap样本外的权重。
参数:fitted_model
The fitted sempls model returned from sempls.
拟合sempls模型返回的sempls。
参数:strata
The strata used. This is the vector passed to boot, if it was supplied or a vector of ones if there were no strata.
所使用的地层。这是向量传递启动,如果它提供的向量的如果没有阶层。
(作者)----------Author(s)----------
Armin Monecke <a href="mailto:armin.monecke@stat.uni-muenchen.de">armin.monecke@stat.uni-muenchen.de</a>
参考文献----------References----------
PLS path modeling. Computational Statistics & Data Analysis 48, 159-205.
Modeling Using Partial Least Squares. Journal of Statistical Software, 48(3), 1-32., URL http://jstatsoft.org/v48/i03/.
参见----------See Also----------
boot, boot.sem
boot,boot.sem
实例----------Examples----------
data(ECSImobi)
ecsi <- sempls(model=ECSImobi, data=mobi)
### Bootstrapping[##自举]
set.seed(123)
ecsiBoot <- bootsempls(ecsi, nboot=200, start="ones", verbose=TRUE)
summary(ecsiBoot, type="perc", level=0.95)
## inspectation of bootstrap samples[#督导工作的bootstrap样本]
parallelplot(ecsiBoot, subset=1:ncol(ecsiBoot$t), reflinesAt=0)
# only inspecting the path coefficients[只有检查的路径系数]
parallelplot(ecsiBoot, pattern="beta", reflinesAt=c(0,1))
densityplot(ecsiBoot, pattern="beta")
# only inspecting the outer loadings[只检查外载荷]
parallelplot(ecsiBoot, pattern="lam")
# only inspecting the outer loadings for Loyalty[只检查外荷载的忠诚]
parallelplot(ecsiBoot, pattern="lam7", type="perc", level=0.90,
main="Loyalty\n 200 bootstrapped outer loadings")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|