find.covariates(RMark)
find.covariates()所属R语言包:RMark
Find covariates in MARK design matrix
在标志设计中的协变量矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Finds and extracts cells in MARK design matrix containing covariates. Computes mean values of the covariates and assigns those as default values. Returns dataframe that can be edited to replace default values which are then inserted into the design matrix with fill.covariates to enable computation of estimates of real parameters with compute.real.
查找和提取单元的标志设计矩阵包含协变量。计算平均值的协变量,并指定这些默认值。返回数据框,可以进行编辑,以取代默认值,然后插入fill.covariates,使设计矩阵计算的实际参数的估计与compute.real。
用法----------Usage----------
find.covariates(model, data = NULL, usemean = TRUE)
参数----------Arguments----------
参数:model
MARK model object
MARK模型对象
参数:data
dataframe used to construct MARK model object; not processed data list
数据框用于构建MARK模型对象;没有处理过的数据列表
参数:usemean
logical; if TRUE uses mean value of covariate for default and otherwise uses 0
逻辑TRUE的用途默认情况下,协变量的平均值,并以其他方式使用0
Details
详细信息----------Details----------
The design matrix for a MARK model with individual covariates contains entries with the covariate names used in the model. In computing the real parameters for the encounter history of an individual it replaces instances of covariate names with the individual covariate values. This function finds all of the cells in the design matrix that contain individidual covariates and constructs a dataframe of the name of the real parameter, the position (row, col) in the design matrix and a default value for the covariate. The default field value is assigned to one of three values in the following priority order: 1) the mean value for the covariates in data (if data is not NULL), 2) the mean values used in the MARK output (if data=NULL,usemean=TRUE), 3) 0 (if usemean=FALSE and data=NULL). The values can also be modified using fc=edit(fc) where fc is the value from this function.
一个的MARK模型与个人的变量的设计矩阵包含的项目与协变量在模型中使用的名称。在计算个人遭遇历史上真正的参数,它取代了协变量的名称与个人的协变量值的实例。此函数查找所有在设计矩阵的单元包含individidual协变量和构造一个数据框的实参的位置(行,列)的设计矩阵和默认值的协变量的名称。在以下优先级顺序:1)数据的协变量的平均值(如果数据不为NULL),2)的平均值用于MARK输出(默认字段值被分配到三个值中的一个,如果数据= NULL ,usemean = TRUE),3)0(如果usemean = FALSE和数据= NULL)。该值可以被修改,使用fc=edit(fc)其中fc是从这个函数的值。
值----------Value----------
A dataframe with the following fields
具有以下字段的一个数据框
参数:rnames
name of real parameter <tr valign="top"><td>row</td>
实际参数的名称<tr valign="top"> <TD> row</ TD>
row number in design matrix (equivalent to parm.indices in call to compute.real <tr valign="top"><td>col</td>
在设计矩阵的行数(相当于parm.indices,在调用compute.real<tr valign="top"> <TD>col</ TD>
column number in design matrix <tr valign="top"><td>var</td>
列数在设计矩阵<tr valign="top"> <TD>var</ TD>
name of covariate
协变量的名称
参数:value
value for covariate
值协
(作者)----------Author(s)----------
Jeff Laake
参见----------See Also----------
fill.covariates, compute.real
fill.covariates,compute.real
实例----------Examples----------
# see examples in fill.covariates[看到的例子fill.covariates]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|