Supplement 1. Data and computer programs for fitting multinomial mixture models used in the main article.
收藏资源简介:
File List frogindex.Rdump Description The file frogindex.Rdump is an R dump file that contains 3 R objects. This file should be loaded into R by issuing the command source("frogindex.Rdump") from an active R session. This will yield 3 objects defined subsequently. The file frogindexmodel.fn is an R script containing the commands for fitting multinomial mixture models. Some familiarity with R or the S language is assumed. As an illustration, the model contained in the first row of Table 2 of Royle and Link is fitted and the resulting output is returned. The remaining two objects are data matrices -- gf.data contains the Greenfrog calling index data. This is a matrix where rows index sample locations and columns index sample occasions. Missing values are indicated by "NA" The file gf.temp contains the temperature covariate data, in the same matrix format [sites × occasions].
文件frogindex.Rdump说明:本文件为R转储文件(R dump file),内含3个R对象。可在活跃的R会话中执行命令`source("frogindex.Rdump")`加载该文件,随后将得到3个预先定义的对象。 文件frogindexmodel.fn为R脚本,包含拟合多项混合模型(multinomial mixture models)的相关命令。本数据集假设使用者具备R或S语言的使用基础。作为示例,本脚本将拟合Royle与Link所发表文献中表2第一行对应的模型,并返回最终拟合结果。 剩余两个对象为数据矩阵:gf.data存储绿蛙鸣叫指数(Greenfrog calling index)数据。该矩阵以行代表采样点位,以列代表采样时段,缺失值以"NA"标记。 文件gf.temp存储温度协变量(temperature covariate)数据,其矩阵格式与上述一致,即[采样点位 × 采样时段]。



