unmarkedFrame(unmarked)
unmarkedFrame()所属R语言包:unmarked
Create an unmarkedFrame, or one of its child classes.
创建一个unmarkedFrame的,或它的子类之一。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Constructor for unmarkedFrames.
为unmarkedFrames的构造函数。
用法----------Usage----------
unmarkedFrame(y, siteCovs=NULL, obsCovs=NULL, mapInfo, obsToY)
参数----------Arguments----------
参数:y
An MxJ matrix of the observed measured data, where M is the number of sites and J is the maximum number of observations per site.
所观察到的测量数据,其中M是站点的数目和J的MXJ矩阵是每个站点的观测的最大数目。
参数:siteCovs
A data.frame of covariates that vary at the site level. This should have M rows and one column per covariate
Adata.frame在站点级别的不同的协变量。这应该具有M行和一列,每协变量
参数:obsCovs
Either a named list of data.frames of covariates that vary within sites, or a data.frame with MxJ rows in site-major order.
data.frame的一个命名列表网站内变化的协变量,或一个data.frame,MXJ行网站主要为了。
参数:obsToY
optional matrix specifying relationship between observation-level covariates and response matrix
可选的矩阵指定观察的协变量和响应矩阵之间的关系
参数:mapInfo
geographic coordinate information. Currently ignored.
GEO坐标信息。目前忽略不计。
Details
详细信息----------Details----------
unmarkedFrame is the S4 class that holds data structures to be passed to the model-fitting functions in unmarked.
unmarkedFrame是认为要传递的数据结构模型的拟合函数在无人盯防的S4级。
An unmarkedFrame contains the observations (y), covariates measured at the observation level (obsCovs), and covariates measured at the site level (siteCovs). For a data set with M sites and J observations at each site, y is an M x J matrix. obsCovs and siteCovs are both data frames (see data.frame). siteCovs has M rows so that each row contains the covariates for the corresponding sites. obsCovs has M*obsNum rows so that each covariates is ordered by site first, then observation number. Missing values are coded with NA in any of y, siteCovs, or obsCovs.
一个unmarkedFrame包含的意见(y),协在观察水平(obsCovs),和协变量的测量在网站级别(siteCovs)。与M点和J在每个站点的观测数据集,y是一个M个J矩阵。 obsCovs和siteCovs是两个数据框(数据框)。 siteCovsM行,每行包含协变量的相应位点。 obsCovsM * obsNum行的,所以,每个协变量是有序的网站第一,然后观察。遗漏值编码的,与NA在Y,siteCovs,或obsCovs。
Additionally, unmarkedFrames contain metadata: obsToY, mapInfo. obsToY is a matrix describing relationship between response matrix and observation-level covariates. Generally this does not need to be supplied by the user; however, it may be needed when using multinomPois. For example, double observer sampling, y has 3 columns corresponding the observer 1, observer 2, and both, but there were only two independent observations. In this situation, y has 3 columns, but obsToY must be specified.
此外,unmarkedFrames包含元数据:obsToY,MAPINFO。 obsToY是一个矩阵描述响应矩阵和观察水平的协变量之间的关系。一般来说,这并不需要由用户提供的,但是,它时,可能需要使用multinomPois。例如,采样双观察员,y有对应的观察员,观察员2,和两个3列,但只有两个独立的观察。在这种情况下,y具有3列,但必须被指定obsToY。
Several child classes of unmarkedFrame require addional metadata. For example, unmarkedFrameDS is used to organize distsance sampling data for the distsamp function, and it has arguments dist.breaks, tlength, survey, and unitsIn, which specify the distance interval cut points, transect lengths, "line" or "point" transect, and units of measure, respectively.
几个子类unmarkedFrame需要额外配置,窑炉的元数据。例如,unmarkedFrameDS使用distsamp函数,组织distsance采样数据,它有的参数dist.breaks,tlength,调查结果显示,与unitsIn,指定间隔距离的切点,横断面长度, “点”“线”或样,测量单位,分别。
All site-level covariates are automatically copied to obsCovs so that site level covariates are available at the observation level.
所有的网站级别的协变量自动复制到obsCovs中,使网站级别的协变量是在观察水平。
值----------Value----------
an unmarkedFrame object
unmarkedFrame对象
参见----------See Also----------
unmarkedFrame-class, unmarkedFrameOccu,
unmarkedFrame-class,unmarkedFrameOccu,
实例----------Examples----------
# Set up data for pcount()[设置pcount的数据为()]
data(mallard)
mallardUMF <- unmarkedFramePCount(mallard.y, siteCovs = mallard.site,
obsCovs = mallard.obs)
summary(mallardUMF)
# Set up data for occu()[设置数据占用()]
data(frogs)
pferUMF <- unmarkedFrameOccu(pfer.bin)
# Set up data for distsamp()[设置了数据distsamp()]
data(linetran)
ltUMF <- with(linetran, {
unmarkedFrameDS(y = cbind(dc1, dc2, dc3, dc4),
siteCovs = data.frame(Length, area, habitat),
dist.breaks = c(0, 5, 10, 15, 20),
tlength = linetran$Length * 1000, survey = "line", unitsIn = "m")
})
summary(ltUMF)
# Set up data for multinomPois()[设置了数据multinomPois()]
data(ovendata)
ovenFrame <- unmarkedFrameMPois(ovendata.list$data,
siteCovs=as.data.frame(scale(ovendata.list$covariates[,-1])),
type = "removal")
summary(ovenFrame)
# Set up data for colext() [设置了数据colext()]
frogUMF <- formatMult(masspcru)
summary(frogUMF)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|