Skip to content

Commit

Permalink
experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hughes authored and Hughes committed Aug 29, 2024
1 parent 7f91d20 commit b0bda74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/getPriors.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ getPriors <- function(modList = NULL,
sSigmaMax = 0.18,
rIntSE = 0.25,
rSigmaMin =0.00001,
rSigmaMax = 0.45,
rSigmaMax = 0.79,
qMin=0, qMax =0.6,
uMin = 0, uMax = 0.2,
zMin = 0, zMax = 0.2,
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/JAGS_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for(k in 1:nYears){
#Recruitment
for(k in 1:nYears){
fixedEffect[k] <- l.R + anthro[k]*beta.Rec.anthro + fire[k]*beta.Rec.fire
sig.R[k]<-cv.R*fixedEffect[k]
sig.R[k]<-cv.R*fixedEffect[k]^2
tau.R[k]<-pow(sig.R[k], -2)
epsilon.R[k]~dnorm(0,tau.R[k])
log(R[k]) <- fixedEffect[k]+ epsilon.R[k]
Expand Down
2 changes: 1 addition & 1 deletion man/getPriors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-caribouBayesianPM.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ test_that("results match expected", {
manyObs <- doScn(nCollar = 2000, rQuantile = 0.9, sQuantile = 0.9)
doPlot(manyObs, title = "2000 collars")

fewCollarObs <- doScn(nCollar = 5, rQuantile = 0.9, sQuantile = 0.9)
fewCollarObs <- doScn(nCollar = 0, rQuantile = 0.9, sQuantile = 0.9)
doPlot(fewCollarObs, title = "5 collars")

difMany <- calcDif(manyObs$obs.all)
Expand Down

0 comments on commit b0bda74

Please sign in to comment.