Skip to content

Commit a249edf

Browse files
authored
update LOO to control index SD estimation params
1 parent 2a791d1 commit a249edf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WHAM/LOO.R

+6
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ LOO=function(mod=NULL,dosdrep=TRUE){
6767
input.temp=set_selectivity(input.temp,sel)
6868
input.temp$par$logit_selpars[i+n_fleets,]=Inf #set all pars to max for missing index just as a way to check function
6969

70+
#turn on or off estimation of log sd of observations scalar for indices
71+
if(!is.na(input.temp$map$log_index_sig_scale[i])){
72+
input.temp$map$log_index_sig_scale[i]=NA
73+
input.temp$map$log_index_sig_scale=factor(input.temp$map$log_index_sig_scale)
74+
}
75+
7076
mod.temp=fit_wham(input.temp,do.osa=F,do.retro = F,do.sdrep = dosdrep,do.check=FALSE)
7177

7278
modname=input.temp$index_names[i]

0 commit comments

Comments
 (0)