Skip to content

Commit

Permalink
Merge pull request #29 from poissonconsulting/pmbr
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 1, 2023
2 parents 2343397 + e73b5fb commit a847bf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-model.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ r2 <- 1 - var(Males - eMales) / var(Males)
"

model <- model(
template, gen_inits,
code = template,
gen_inits = gen_inits,
select_data = list(Males = 1, "Disturbance*" = 1, Year = factor(1), PDO = 1, "HunterDays*" = 1),
modify_data = modify_data,
new_expr = new_expr, drops = list("bDisturbance", "bPDO", "bHunterDays"))
new_expr = new_expr, drops = list("bDisturbance", "bPDO", "bHunterDays")
)

models <- make_all_models(model)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-zzzanalyse.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data <- bauw::peregrine
data$Annual <- factor(data$Year)


model <- model(tmb_template, gen_inits = gen_inits,
model <- model(code = tmb_template, gen_inits = gen_inits,
select_data = list("Pairs" = integer(), "Year*" = integer(), Annual = factor()),
random_effects = list(bAnnual = "Annual"),
new_expr = new_expr)
Expand Down

0 comments on commit a847bf7

Please sign in to comment.