Closed danielturek closed 5 months ago
Specifically, this addresses using the categorical
sampler on distributions other than dcat
. In such case, the issue is to determine the number of possible outcomes (or categories) k
, where the distribution outcomes are the values $(1, 2, 3, \ldots, k).$
In support of that, this PR:
length
control parameter to the categorical
sampler.
length
is a character string, it gives the distribution parameter name, for which the length of this parameter defines the value of k
.length
is numeric, it itself defines the value of k
.dcat
distribution is relaxed. A second control parameter anyDistributionOK
can be set to TRUE
to subvert this check.@danielturek I used the control element named check
to be able to turn off some checking in the (new) PG sampler.
Maybe we should use that instead of anyDistributionOK
. I can change it if you're ok with that.
@paciorek Change just made on a branch, with PR, please merge it if it looks good.
The title says it all.
Following suggestions in NCT # 505.