-
Notifications
You must be signed in to change notification settings - Fork 8
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
More convenient col_decimals
for summary.gs_design()
#428
Comments
We recently updated the syntax for modifying the number of digits via
Your proposed syntax isn't possible because tmp_gsDesign2 |>
summary(col_decimals = c(z = 4)) Also note that as of last week (#422), you should now be able to omit both tmp_gsDesign2 |>
summary(
col_vars = c("z", "~hr at bound", "nominal p", "Alternate hypothesis", "Null hypothesis"),
col_decimals = c(4, 4, 4, 4, 4)
) Lastly, I am going to update the title of your Issue. |
summary.fixed_design()
col_decimals
for summary.gs_design()
Thank you, @jdblischak!
|
@yuliasidi Using #422 allows you to omit library("gsDesign2")
gs_power_ahr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1)) |>
summary(
col_vars = c("z", "~hr at bound", "nominal p", "Alternate hypothesis", "Null hypothesis"),
col_decimals = c(4, 4, 4, 4, 4)
)
## Adding missing grouping variables: `Analysis`
## # A tibble: 6 × 7
## # Groups: Analysis [3]
## Analysis Bound Z `~HR at bound` `Nominal p` `Alternate hypothesis` `Null hypothesis`
## <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 Analysis: 1 … Futi… -1.17 1.54 0.879 0.0349 0.121
## 2 Analysis: 1 … Effi… 2.67 0.374 0.0038 0.0231 0.0038
## 3 Analysis: 2 … Futi… -0.663 1.24 0.746 0.0668 0.266
## 4 Analysis: 2 … Effi… 2.29 0.481 0.011 0.0897 0.0122
## 5 Analysis: 3 … Futi… -0.227 1.07 0.590 0.101 0.430
## 6 Analysis: 3 … Effi… 2.03 0.560 0.0211 0.207 0.025 |
Hi @yuliasidi , thanks for exploring the decimal display of the Hi @jdblischak, I created an issue (#430) to remind us of the |
Please consider adding a simplified way for modifying the column digits in the table.
Currently a user needs to run the following code to modify the number of digits for Z value to 4:
It would be helpful to have instead the following option and call out only what needs to be modified:
For your consideration.
The text was updated successfully, but these errors were encountered: