-
Notifications
You must be signed in to change notification settings - Fork 7
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
210 gencorgen with varying cluster sizes #229
Conversation
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 5992ad7 is merged into main:
|
I'll be able to have a look over the weekend :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
this part of the package is woefully untested
Yeah it's surprisingly hard to retroactively add tests to things ^^
@@ -1,9 +1,15 @@ | |||
# simstudy (development version) | |||
|
|||
## New features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This confused me at first because I was looking for the associated change xD
if (!wide) { # multiple record per id | ||
if (is.null(corMatrix)) { | ||
if (same_nvar) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine here imo because it's just the one line each but when you nest three levels deep it's usually a good time to check if pulling some of the logic out can flatten things out a bit. (a goto example: instead of wrapping the entire function with if(condition)
invert the condition and return early removing that level of nesting from the entire function)
Co-authored-by: Jacob Wujciak-Jens <[email protected]>
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 9834a6a is merged into main:
|
@assignUser I addressed #210 by updating function
addCorGen
. As part of this update, I fleshed out the help details. Here they are so you can understand what I did:I didn't add any tests here. I need to do this, because this part of the package is woefully untested; I will hopefully get to it when I have more time.