Skip to content

fix dimension issue in sampleDPmeasure#1572

Merged
paciorek merged 3 commits into
develfrom
dpmeas-dim-fix
Jul 11, 2025
Merged

fix dimension issue in sampleDPmeasure#1572
paciorek merged 3 commits into
develfrom
dpmeas-dim-fix

Conversation

@paciorek
Copy link
Copy Markdown
Contributor

sampleDPmeasure determines number of node elements in the mixture component variables based on the "data length" raised to the dimension of the variable.

This would work for something like y[1:3] with mu[1:3, z] and Sigma[1:3,1:3,z]. But not if mixing over regression components such as mu[1:3,i] <- X[1:7,i] %*% beta[1:7,z].

Not sure why we didn't originally just check the number of scalar components of each variable, but this PR does that.

@paciorek paciorek merged commit c0a058e into devel Jul 11, 2025
8 checks passed
@paciorek paciorek deleted the dpmeas-dim-fix branch July 11, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant