Occasion and vegetation specific estimates of g0 and sigma

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

Re: Occasion and vegetation specific estimates of g0 and sig

Postby mjgould » Wed Jun 10, 2015 5:07 pm

Fantastico! That was the ticket. Thanks again for your help.
mjgould
 
Posts: 18
Joined: Fri Apr 18, 2014 2:07 pm

Re: Occasion and vegetation specific estimates of g0 and sig

Postby murray.efford » Wed Jun 10, 2015 5:09 pm

Just adding to my earlier reply: the actual levels of a factor seem not to matter in predict(), just their number and order. Thus
Code: Select all
fit <- secr.fit(ovenCH[[1]], model = sigma~Sex, CL = T, buffer = 300 )
predict(fit, newdata = data.frame(Sex = factor(1:2)))
predict(fit, newdata = data.frame(Sex = factor(c('F','M'))))
both give the same estimates (Sex is an individual covariate coded 'F', 'M' in ovenCH).
Murray
murray.efford
 
Posts: 712
Joined: Mon Sep 29, 2008 7:11 pm
Location: Dunedin, New Zealand

Re: Occasion and vegetation specific estimates of g0 and sig

Postby mjgould » Wed Jun 10, 2015 5:27 pm

Fantastico! That was the ticket. Thanks again for your help.
mjgould
 
Posts: 18
Joined: Fri Apr 18, 2014 2:07 pm

Previous

Return to analysis help

Who is online

Users browsing this forum: No registered users and 1 guest