Skip to content

Commit

Permalink
set log devs estimation to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea-Havron-NOAA committed Aug 8, 2024
1 parent a98c48e commit 5c6b8e7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vignettes/fims-demo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,13 @@ recruitment$log_devs <- new(ParameterVector, c(
In order to estimate *log_devs*, a new distribution needs to be created. This will be left commented out as we will proceed with not estimating log_devs.

```{r recruitment-distribution}
# recruitment_distribution <- new(TMBDnormDistribution)
# recruitment_distribution$log_sd <- new(ParameterVector, 1)
# recruitment_distribution$log_sd[1]$value <- log(0.4)
# recruitment_distribution$log_sd[1]$estimated = FALSE
# recruitment_distribution$set_distribution_links("random_effects", recruitment$log_devs$get_id())
recruitment$estimate_log_devs = FALSE
recruitment_distribution <- new(TMBDnormDistribution)
recruitment_distribution$log_sd <- new(ParameterVector, 1)
recruitment_distribution$log_sd[1]$value <- log(0.4)
recruitment_distribution$log_sd[1]$estimated = FALSE
recruitment_distribution$expected_values <- new(ParameterVector, 0, 1)
recruitment_distribution$set_distribution_links("random_effects", recruitment$log_devs$get_id())
recruitment$estimate_log_devs = TRUE
```

#### Growth
Expand Down

0 comments on commit 5c6b8e7

Please sign in to comment.