Skip to content

Commit

Permalink
fix make_settings...
Browse files Browse the repository at this point in the history
... to track change from Index_cyl to Index_ctl
  • Loading branch information
James-Thorson-NOAA committed Aug 9, 2020
1 parent fc56410 commit 8c30d2c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/make_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @return Tagged list containing default settings for a given purpose, use \code{names} on output to see list of settings.
#'
#' @family wrapper functions
#' @seealso \code{?VAST} for general documentation, \code{?make_settings} for generic settings, \code{?fit_model} for model fitting, and \code{?plot_results} for generic plots
#' @seealso \code{\link[VAST]{VAST}} for general documentation, \code{\link[FishStatsUtils]{make_settings}} for generic settings, \code{\link[FishStatsUtils]{fit_model}} for model fitting, and \code{\link[FishStatsUtils]{plot_results}} for generic plots
#'
#' @export
make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
Expand Down Expand Up @@ -52,7 +52,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(bias.correct)) bias.correct = TRUE
if(missing(treat_nonencounter_as_zero)) treat_nonencounter_as_zero = TRUE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=TRUE, "Calculate_effective_area"=TRUE, "treat_nonencounter_as_zero"=treat_nonencounter_as_zero )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "samples"
if(missing(max_cells)) max_cells = Inf
}
Expand All @@ -72,7 +72,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(bias.correct)) bias.correct = TRUE
if(missing(treat_nonencounter_as_zero)) treat_nonencounter_as_zero = TRUE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=TRUE, "Calculate_effective_area"=TRUE, "treat_nonencounter_as_zero"=treat_nonencounter_as_zero )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "grid"
if(missing(max_cells)) max_cells = max( 2000, n_x*10 )
}
Expand All @@ -95,7 +95,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(treat_nonencounter_as_zero)) treat_nonencounter_as_zero = FALSE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=FALSE, "Calculate_effective_area"=FALSE, "Calculate_Cov_SE"=TRUE,
"treat_nonencounter_as_zero"=treat_nonencounter_as_zero, "Project_factors"=TRUE )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "samples"
if(missing(max_cells)) max_cells = Inf
}
Expand All @@ -118,7 +118,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(bias.correct)) bias.correct = TRUE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=FALSE, "Calculate_effective_area"=FALSE, "Calculate_Cov_SE"=FALSE,
"Calculate_Fratio"=TRUE, "Estimate_B0"=TRUE )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Bratio_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Bratio_cyl", "Index_ctl", "Bratio_ctl" )
if(missing(knot_method)) knot_method = "samples"
if(missing(max_cells)) max_cells = Inf
}
Expand All @@ -140,7 +140,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(ObsModel)) ObsModel = c(1,1)
if(missing(bias.correct)) bias.correct = FALSE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=FALSE, "Calculate_effective_area"=FALSE, "Calculate_Cov_SE"=TRUE, "Project_factors"=TRUE )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "samples"
if(missing(max_cells)) max_cells = Inf
}
Expand All @@ -166,7 +166,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(ObsModel)) ObsModel = c(1,1)
if(missing(bias.correct)) bias.correct = FALSE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=FALSE, "Calculate_effective_area"=FALSE, "Calculate_Cov_SE"=TRUE, "Project_factors"=TRUE )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "samples"
if(missing(max_cells)) max_cells = Inf
}
Expand All @@ -183,7 +183,7 @@ make_settings = function( n_x, Region, purpose="index", fine_scale=TRUE,
if(missing(ObsModel)) ObsModel = c(2,1)
if(missing(bias.correct)) bias.correct = FALSE
if(missing(Options)) Options = c("SD_site_logdensity"=FALSE, "Calculate_Range"=FALSE, "Calculate_effective_area"=FALSE, "Calculate_Cov_SE"=TRUE, "Project_factors"=TRUE )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl" )
if(missing(vars_to_correct)) vars_to_correct = c( "Index_cyl", "Index_ctl" )
if(missing(knot_method)) knot_method = "grid"
if(missing(max_cells)) max_cells = max( 2000, n_x*10 )
}
Expand Down

0 comments on commit 8c30d2c

Please sign in to comment.