mkMvX(spBayes)
mkMvX()所属R语言包:spBayes
Make a multivariate design matrix
做一个多元的设计矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given m univariate design matrices, the function mkMvX creates a multivariate design matrix suitable for use in spPredict.
鉴于m的单变量设计矩阵,功能mkMvX创建一个多变量设计矩阵适合在spPredict用于。
用法----------Usage----------
mkMvX(X)
参数----------Arguments----------
参数:X
a list of m univariate design matrices. The matrices must have the same number of rows (i.e., observations) but may have different number of columns (i.e., regressors).
的列表m的单因素设计矩阵。矩阵必须具有相同的行数(即,观察),但可以具有不同的列数(即,回归量)。
值----------Value----------
A multivariate design matrix suitable for use in spPredict.
一个多元的设计矩阵,适合使用在spPredict。
(作者)----------Author(s)----------
Andrew O. Finley <a href="mailto:finleya@msu.edu">finleya@msu.edu</a>, <br>
Sudipto Banerjee <a href="mailto:sudiptob@biostat.umn.edu">sudiptob@biostat.umn.edu</a>.
参见----------See Also----------
spPredict
spPredict
实例----------Examples----------
##Define some univariate model design matrices[#先定义一些单变量模型设计矩阵]
##with intercepts.[#拦截。]
X.1 <- cbind(rep(1, 10), matrix(rnorm(50), nrow=10))
X.2 <- cbind(rep(1, 10), matrix(rnorm(20), nrow=10))
X.3 <- cbind(rep(1, 10), matrix(rnorm(30), nrow=10))
##Make a multivariate design matrix suitable[#做一个多元的设计矩阵,适合]
##for use in spPredict.[#用于在spPredict。]
X.mv <- mkMvX(list(X.1, X.2, X.3))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|