cschwarz-stat-sfu-ca / BTSPAS

Bayesian Time Stratified Petersen Analysis System
1 stars 3 forks source link

Need to fix treatment of bad.strata #23

Closed cschwarz-stat-sfu-ca closed 3 years ago

cschwarz-stat-sfu-ca commented 5 years ago

Need to fix treatment of bad strata.

For bad n1, set n1=0 and m2=0 for that stratum FOr bad u2. set to missing.

Some routine set n1 to NA; this fails in many parts. Need to check to see that Jags allow multionomials with n=0 and x1, x2...=0

cschwarz-stat-sfu-ca commented 3 years ago

Related to #28. This has been fixed in all routines. Bad n1 and m2 cause the n1=0 and m2=0 for that stratum. Bad u2 cause u2 to be set to missing for that stratum.