default.LUR.list(SpatioTemporal)
default.LUR.list()所属R语言包:SpatioTemporal
Error Checking and Default Values for Covariate Selection
错误检查和协变量选择的默认值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functions that compare the covariates requested (both geographic and spatio-temporal) with those available in mesa.data and modifies the covariate request to ensure that only available covariates are used.
功能比较要求的协变量(GEO和时空)那些在mesa.data的和修改,以确保唯一可用的协变量的协要求。
用法----------Usage----------
default.LUR.list(mesa.data, LUR = NA)
default.ST.list(mesa.data, ST.Ind = NA)
参数----------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. If LUR = NA all covariates are used for all the temporal trends. If a vector of integers or characters (names) is used to specify covariates, these covariates will be used for all the temporal trends. A list of vectors allows for different covariates for each temporal trend. In this case the list needs to contain one vector for each of the temporal trends, starting with coefficients for the intercept. Setting any element(s) of the list to NULL implies only an intercept for the corresponding temporal trend(s). If covariates are specified using names these should match <br> names(mesa.data$LUR), unmatched covariates are dropped.
一个向量或列表的GEO协变量使用的向量。 LUR = NA如果所有的协变量用于所有的时间趋势。如果用于指定协变量的整数或字符(名称)的向量,这些协变量将被用于所有的时间趋势。向量的列表允许不同的协变量为每个时间趋势。在这种情况下,列表中需要包含一个向量的每个的时间的趋势,截距系数开始。设置的任何元素(S)的列表NULL意味着只有一个截距对应的时间趋势(S)。如果协变量指定使用的名称应符合<BR>的names(mesa.data$LUR),无与伦比的协变量都将被丢弃。
参数:ST.Ind
A vector of integers or characters (names) indicating which of the <br> spatio-temporal covariates in mesa.data to include. ST.Ind = NA will include all covariates, ST.Ind = NULL gives no covariates. If covariates are specified using names these should match <br> dimnames(mesa.data$SpatioTemp), unmatched elements are dropped.
一个向量的整数或字符(地名)的<br>时空协变量mesa.data,包括。 ST.Ind = NA将包括所有的协变量,ST.Ind = NULL没有给出协变量。如果指定的协变量使用的名称应符合<BR>dimnames(mesa.data$SpatioTemp),无与伦比的元素都将被丢弃。
值----------Value----------
Returns either a LUR-list or ST.Ind-vector that refers to the covariate elements of mesa.data by name, ensuring that all elements referred to actually exist in mesa.data.
返回一个LUR列表或ST.Ind协元素的向量,是指mesa.data的名字,以确保所有元素的统称,实际存在的mesa.data。
(作者)----------Author(s)----------
Johan Lindstr枚m
参见----------See Also----------
Used internally by: create.data.model, construct.LUR.basis, and <br> construct.ST.basis.
内部使用:create.data.model,construct.LUR.basis,和<br>construct.ST.basis。
See also mesa.data and create.data.model.
mesa.data和create.data.model。
For other data functions, see mesa.data.raw, mesa.data.model and <br> create.data.matrix.
其它数据功能,请参阅mesa.data.raw,mesa.data.model和参考create.data.matrix。
实例----------Examples----------
##load the data[#加载的数据。]
data(mesa.data)
##create a simple set of covariates[#创建一个简单的协变量]
default.LUR.list(mesa.data, list(c(1:3),1,2))
##or a structure with the same covariates for all[#或可用于所有的结构具有相同的协变量]
##temporal trends[#时间趋势]
default.LUR.list(mesa.data, c(1,2))
##or a structure with only intercept for the temporal trends[#或结构,只能拦截的时间趋势]
default.LUR.list(mesa.data, list(c(1:3),NULL,NULL))
##Ask for covariates by name[#问的协变量的名字]
default.LUR.list(mesa.data, list(c("log10.m.to.a1","log10.m.to.a2"),
"log10.m.to.a1","log10.m.to.a1"))
##Ask for non-existent covariate by name (produces three warnings, one[#请求不存在的协变量的名称(产生三个警告,]
##for each temporal trend)[#每个时间趋势)]
default.LUR.list(mesa.data, "log10.m.to.a4")
##create a simple set of spatio-temporal covariates[#创建一组简单的时空协变量]
default.ST.list(mesa.data, 1)
##or create a empty set of spatio-temporal covariates[#创建一个空的时空协变量]
default.ST.list(mesa.data, NULL)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|