RMarkInput(secr)
RMarkInput()所属R语言包:secr
Convert Data to RMark Input Format
转换的数据RMark输入格式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A single-session capthist object is formed by RMarkInput into a dataframe that may be passed directly to RMark.
一个单一的会话capthist对象是由RMarkInput的成数据框可能被直接传递给RMark的。
用法----------Usage----------
RMarkInput(object, grouped = TRUE)
unRMarkInput(df)
参数----------Arguments----------
参数:object
secr capthist object
秘书服务capthist对象
参数:grouped
logical for whether to replace each group of identical capture histories with a single line
逻辑是否更换相同的捕获记录各组一行
参数:df
dataframe with fields "ch" and "freq"
数据框领域的ch和频率
Details
详细信息----------Details----------
To convert a multi-session object first collapse the sessions with join.
要转换一个多会话对象的第一个崩溃的会话join。
值----------Value----------
For RMarkInput –
对于RMarkInput -
Dataframe with fields ch and freq. "ch" is a character string of 0's and 1's. If grouped = FALSE the rownames are retained and the value of "freq" is 1 or -1. Negative values of "freq" indicate removal.
数据框的字段通道和频率。的ch是0和1的一个字符的字符串。如果grouped = FALSE的行名仍保留的“频率”的值是1或-1。 频率的负值表示清除。
The attribute "interval" is copied from "object", if present; otherwise it is set to a vector of zeros (indicating a closed-population sample).
被复制的“对象”的属性间隔,如果存在的话,否则,它被设置到零向量(表示一个封闭的人口样本)。
For unRMarkInput –
对于unRMarkInput -
A single-session capthist object with no traps attribute and hence no detector type (i.e. non-spatial capture histories). Covariates are copied.
没有陷阱的属性,因此没有检测的类型(即非空间捕捉历史)的单届capthist的对象。协变量被复制。
参考文献----------References----------
approach to building linear models in MARK. In: Cooch, E. and White, G. (eds) Program MARK: A Gentle Introduction. 6th edition. Available at http://www.phidot.org/software/mark/docs/book/.
参见----------See Also----------
join
join
实例----------Examples----------
## ovenCH is a 5-year mist-netting dataset[#ovenCH是一个5年的雾网的数据集]
ovenRD <- RMarkInput (join(ovenCH))
ovenRD
unRMarkInput(ovenRD)
## Not run: [#不运行:]
## fit robust-design model in RMark (MARK must be installed)[#适合在RMark强大的设计模型(标记必须安装)]
library(RMark)
ovenRD.data <- process.data(ovenRD, model = 'Robust',
time.interval = attr(ovenRD, 'interval'))
ovenRD.model <- mark(data = ovenRD.data, model = 'Robust',
model.parameters = list(p = list(formula = ~1, share = TRUE),
GammaDoublePrime = list(formula = ~1),
GammaPrime = list(formula = ~1),
N = list(formula = ~1)))
cleanup(ask = FALSE)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|