Session-specific timecov?

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

Session-specific timecov?

Postby bgerber » Thu Jun 06, 2019 1:58 pm

Looking for some help with timecov...
I have 3 sessions, which have a different number of occasions (5,4,3). I would like to specify a factor-level covariate across sessions and occasions. Anyone know how to do this?

Something like timecov=c("Jan", "Feb, "March,"April,"May",
"Feb","March", "April", "May",
"Jan", "Feb, "March")

timecov does not mention anything about sesssions having different numbers of occasions:
"timecov optional dataframe of values of time (occasion-specific) covariate(s)"

Posts: 24
Joined: Wed Dec 12, 2007 1:01 pm

Re: Session-specific timecov?

Postby murray.efford » Thu Jun 06, 2019 5:29 pm

Hi Brian
Looking at the code to jog my memory, I think timecov can be a list of data.frames, one per session and one row per occasion, and that if each data.frame has a column with the same name that name can be used in the formula. Maybe you should try this to save me time mocking up an example.
Posts: 610
Joined: Mon Sep 29, 2008 7:11 pm
Location: Dunedin, New Zealand

Re: Session-specific timecov?

Postby bgerber » Fri Jun 07, 2019 10:45 am

Works perfectly!
Thanks again Murray.
cheers, Brian
Posts: 24
Joined: Wed Dec 12, 2007 1:01 pm

Return to analysis help

Who is online

Users browsing this forum: No registered users and 1 guest