全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1504 0
2017-12-04
悬赏 1 个论坛币 未解决

Background: I have twoyears(Year) field survey data, each year surveyed three different fields(Site), each field we have three blocks (Repetition), and in each field each year threesamplings were carried out (Date). (a theoretical dataset in the attachment

Table.xlsx
大小:(11.36 KB)

 马上下载


Question: I want to use GLMMmodel to investigate effects of explanatory variables on response variables. However,I am not sure how to deal with the random factor when fit the GLMM model.

If just use one of thethree samplings data for analysis, the formula be

GLMM.1< - glmer (Responsevariable ~ explanatory variable + (1|factor(Year)/factor(Site)), family=…,data=…)

There the Year and Repetition (nested withineach site and year) were included as random factors. Indicating that there is adependence on each year and, within each year, between the three repetitionstaken at each site.

But if I want to takethe three samplings data into analysis, what should I do and how can I writethe formula, and should consider about the correlations between dates whetheror not.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群