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

extracting covariances #21

Open
stephens999 opened this issue Apr 19, 2024 · 5 comments
Open

extracting covariances #21

stephens999 opened this issue Apr 19, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@stephens999
Copy link
Collaborator

is there a function to get a list of the prior covariance matrices?
(meaning as a list of matrices; internally these are stored as a list of lists that is not really suitable for use in other packages)

@pcarbo
Copy link
Member

pcarbo commented Apr 19, 2024

I don't think so. We probably should revisit the interface, and in particular add a few useful functions (or S3 methods?) to make the package more accessible.

@pcarbo pcarbo added the enhancement New feature or request label Apr 19, 2024
@yunqiyang0215
Copy link
Collaborator

There is some code to extract covariance matrices, but not in a function. I am using:
U <- lapply(fit$U,function (e) "[["(e,"mat")). And I can write a function for this.

@pcarbo
Copy link
Member

pcarbo commented Apr 19, 2024

Please go ahead and do that @yunqiyang0215.

@yunqiyang0215
Copy link
Collaborator

Added get_Ulist() here: https://github.com/stephenslab/udr/blob/master/R/misc.R

@stephens999
Copy link
Collaborator Author

are these matrices, as stored, correctly scaled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants