Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist_multivariate_normal() error for default arguments #118

Open
robjhyndman opened this issue Jul 31, 2024 · 0 comments
Open

dist_multivariate_normal() error for default arguments #118

robjhyndman opened this issue Jul 31, 2024 · 0 comments

Comments

@robjhyndman
Copy link
Contributor

library(distributional)
dist_multivariate_normal() |> density(0)
#> Error in if (p != ncol(sigma)) stop("x and sigma have non-conforming size"): argument is of length zero
dist_multivariate_normal(list(0), sigma = list(diag(1))) |> density(0)
#> [1] 0.3989423

Created on 2024-07-31 with reprex v2.1.1

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

No branches or pull requests

1 participant