-
Notifications
You must be signed in to change notification settings - Fork 8
Add the h1_spending
argument to gs_power_wlr
#561
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
base: main
Are you sure you want to change the base?
Conversation
# Given the above statistical information calculate the power ---- | ||
y_h1 <- gs_power_npe( | ||
theta = x$theta, | ||
theta = x$theta, theta0 = 0, theta1 = theta1, |
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.
Since all the other arguments are on their own line, I recommend keeping this consistent with the surrounding code and moving theta0
and theta1
to new lines
theta = 0, | ||
theta0 = 0, | ||
theta1 = x$theta, | ||
theta = 0, theta0 = 0, theta1 = theta1, |
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.
Ditto above comment
upar = list(sf = gsDesign::sfLDOF, total_spend = 0.025), | ||
lower = gs_spending_bound, | ||
lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.025), | ||
binding = TRUE, h1_spending = FALSE) |
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.
Love the test! For completeness, would it also make sense to have a test with h1_spending = TRUE
to demonstrate that in that case the upper and lower bounds are not equal?
To solve issue #560.