Open drnickisaac opened 6 years ago
I can foresee that changing all these names could cause all sorts of problems. This doesn't mean we shouldn't do it, just be careful when we do.
Changing the parameter names ("a" to "b" + "alpha.p" to "a") will NOT affect: plot.occDet() as this function uses the occupancy parameter outputs (referred to as "psi.fs")
This might effect the initial values function getInitialValues
and get getParameters
- Check these
Below are the lines of occDetFunc
that will need to be changed if the terms are renamed:
"a" to "b" and "a" to "b": https://github.com/BiologicalRecordsCentre/sparta/blob/46e9d8bef799fee3d781f8ce4695f2a66c33da1f/R/occDetFunc.r#L348-L350
"a" to "b" and perhaps change "aa" too: https://github.com/BiologicalRecordsCentre/sparta/blob/46e9d8bef799fee3d781f8ce4695f2a66c33da1f/R/occDetFunc.r#L468
There is nothing to change for getBugsData
or getInitValues
.
For getModelFile
:
there are eight "a" to change to "b", seven here: https://github.com/BiologicalRecordsCentre/sparta/blob/46e9d8bef799fee3d781f8ce4695f2a66c33da1f/R/getModelFile.R#L44-L55
and one here: https://github.com/BiologicalRecordsCentre/sparta/blob/46e9d8bef799fee3d781f8ce4695f2a66c33da1f/R/getModelFile.R#L62
For getObsModel
:
Presently, the state model year effect are referred to as "a" in the BUGS code but "b" in the literature. This is very confusing because the detection model year effect is referred to as "a" in teh literature (but alpha.p in the BUGS code. I'd like to rename the "a" terms in getModelFile.R as "b". I'd like @GPowney and @CharlieOuthwaite to identify what downstream impacts this would have. Do you ever use the "a" parameters from the BUGS output?