construct.LUR.basis(SpatioTemporal)
construct.LUR.basis()所属R语言包:SpatioTemporal
Extract and Create Covariate Matrices
提取和建立协方差矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extracts the requested geographic and spatio-temporal covariates from mesa.data and formats them into suitable matrices.
解压缩所要求的GEO和时空的协变量mesa.data他们到合适的矩阵和格式。
用法----------Usage----------
construct.LUR.basis(mesa.data, LUR)
construct.ST.basis(mesa.data, ST.Ind)
参数----------Arguments----------
参数:mesa.data
Data structure holding observations, observation locations, smooth temporal trends, geographic covariates and spatio-temporal covariates. See mesa.data.
数据结构观测,观测地点,平滑的变化趋势,GEO协变量和时空的协变量。见mesa.data。
参数:LUR
A vector or list of vectors indicating which geographic covariates to use, see default.LUR.list.
向量的GEO协变量使用的向量或列表,请参阅default.LUR.list。
参数:ST.Ind
A vector indicating which spatio-temporal covariates to use, see <br> default.ST.list.
一个矢量时空协变量使用,看到<BR>的default.ST.list。
值----------Value----------
construct.LUR.basis returns a list of matrices, where each matrix contains geographic covariates for the corresponding temporal trend, starting with the intercept.
construct.LUR.basis返回一个列表,矩阵,每个矩阵包含GEO协变量对应的时间趋势,开始与拦截。
construct.ST.basis returns a matrix with one column for each spatio-temporal covariate. Each row contains the covariate(s) for the corresponding observation in mesa.data$obs$obs.
construct.ST.basis返回一个矩阵,每个时空的协变量的一列。每行包含协变量(s)为相应的观测中mesa.data$obs$obs。
(作者)----------Author(s)----------
Johan Lindstr枚m
参见----------See Also----------
Used internally by: create.data.model.
内部使用:create.data.model。
See default.LUR.list and default.ST.list for details on the variable specification.
见default.LUR.list和default.ST.list的变量规范的细节。
For other data functions, see mesa.data.raw, mesa.data.model, default.LUR.list, <br> and create.data.matrix.
其它数据功能,请参阅mesa.data.raw,mesa.data.model,default.LUR.list,参考和create.data.matrix。
实例----------Examples----------
##load the data[#加载的数据。]
data(mesa.data)
##create a simple set of covariates[#创建一个简单的协变量]
LUR.1 <- construct.LUR.basis(mesa.data, list(c(1:3),1,2))
str(LUR.1)
##or a structure with the same covariates for all[#或可用于所有的结构具有相同的协变量]
##temporal trends[#时间趋势]
LUR.2 <- construct.LUR.basis(mesa.data, c(1:2))
str(LUR.2)
##or a structure with only intercept for the temporal trends[#或结构,只能拦截的时间趋势]
LUR.3 <- construct.LUR.basis(mesa.data, list(c(1:3),NULL,NULL))
str(LUR.3)
##Ask for covariates by name[#问的协变量的名字]
LUR.4 <- construct.LUR.basis(mesa.data, "log10.m.to.a1")
str(LUR.4)
##Ask for non-existent covariate by name (produces a warning)[#请求不存在的协变量的名称(产生一个警告)]
LUR.5 <- construct.LUR.basis(mesa.data, "log10.m.to.a4")
str(LUR.5)
##create a simple set of spatio-temporal covariates[#创建一组简单的时空协变量]
ST.1 <- construct.ST.basis(mesa.data, 1)
str(ST.1)
##or create a empty set of spatio-temporal covariates[#创建一个空的时空协变量]
ST.2 <- construct.ST.basis(mesa.data, NULL)
str(ST.2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|