TT

questions concerning anlysis/theory using program DENSITY and R package secr. Focus on spatially-explicit analysis.

TT

Postby bear16 » Thu Sep 13, 2012 2:12 pm

I am interested in including TT in my models since it has worked well in my abundance models in MARK. I noted that the overview for secr indicates that a "timecov" argument may be used. However, I am unfamiliar with how to set that up and then code for it. Would someone be willing to share code where they have included TT so that I can see how to add it to my own models?

Thank you!
bear16
 
Posts: 20
Joined: Thu Oct 14, 2010 11:18 am

Re: TT

Postby murray.efford » Thu Sep 13, 2012 9:44 pm

Sorry, but can you please tell me what TT means save me the trouble of looking up MARK?
Murray
murray.efford
 
Posts: 712
Joined: Mon Sep 29, 2008 7:11 pm
Location: Dunedin, New Zealand

Re: TT

Postby bear16 » Fri Sep 14, 2012 8:30 am

Of course. TT is a quadratic model of time. When I code for it in MARK, in the design matrix, I need to include two columns. This would be for five sessions:

T TT
1 1
2 2
3 4
4 8
5 16

Would something like this work?

secrsexandTT <- secr.fit(myCH, model = (g0 ~ g+T), groups = 'sex', buffer=6000, timecov=c(1,2,4,8,16))

Thank you again!
bear16
 
Posts: 20
Joined: Thu Oct 14, 2010 11:18 am

Re: TT

Postby murray.efford » Fri Sep 14, 2012 4:31 pm

I see. Strictly, your code won't work as you intend because in 'secr' T refers to the 'built-in' covariate 1,2,3,4,5, and your model formula doesn't actually use the quadratic variable in timecov. For a true quadratic model you could use
Code: Select all
secrsexandTT <- secr.fit(myCH, model = (g0 ~ g+t1+t2), groups = 'sex', buffer = 6000,
    timecov = data.frame(t1 = 1:5, t2 = (1:5)^2))

(note the need to include both the linear and squared values as in the MARK design matrix).
Murray
murray.efford
 
Posts: 712
Joined: Mon Sep 29, 2008 7:11 pm
Location: Dunedin, New Zealand

Re: TT

Postby bear16 » Mon Sep 17, 2012 3:42 pm

Thank you! That is great!
bear16
 
Posts: 20
Joined: Thu Oct 14, 2010 11:18 am


Return to analysis help

Who is online

Users browsing this forum: No registered users and 1 guest

cron