Skip to content

Commit e618400

Browse files
committed
update docs formatting
1 parent 0403c61 commit e618400

File tree

9 files changed

+10
-26
lines changed

9 files changed

+10
-26
lines changed

R/best_split.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#' from `nc_list` and `nt_list` that violate this are skipped
1515
#'
1616
#' @return A list containing the following elements:
17-
#' \itemize{
1817
#' \item{valuesIP, valuesLP: }{matrices containing integer and linear programming
1918
#' scaled objective values for each sample size tried, with rows corresponding to the
2019
#' elements of `nc_list` and columns corresponding to the elements of `nt_list`}
@@ -28,7 +27,6 @@
2827
#' with rows corresponding to the strata and columns to the units}
2928
#' \item{selection: }{vector of selected strata for each unit
3029
#' in the initial stratum to be split for the best split}
31-
#' }
3230
#'
3331
#' @export
3432
#' @examples

R/rand_pvals.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#' and the proportion of randomized values more imbalanced than the observational value (the P-value).
2929
#'
3030
#' The `options` list argument can contain any of the following elements:
31-
#' \itemize{
31+
#' \describe{
3232
#' \item{nrand: }{how many times to randomize the treatment assignment when forming the null distribution.
3333
#' Default is 10000}
3434
#' \item{criterion: }{which optimization criterion to use when calculating the objective value.
@@ -41,7 +41,6 @@
4141
#' Default is `TRUE` if a base stratification is provided}
4242
#' }
4343
#' @return List with three components:
44-
#' \itemize{
4544
#' \item{pvals: }{list containing `base` and `refined` elements, each of which is a list with randomization P-values
4645
#' for the objective value (`NULL` for the base stratification),
4746
#' the maximum standardized mean difference (SMD),
@@ -58,7 +57,6 @@
5857
#' the maximum standardized mean difference (SMD),
5958
#' and for the average SMD across strata for each covariate
6059
#' (this element is a matrix with `nrand` rows and a column for each covariate)}
61-
#' }
6260
#' @export
6361
#' @import stats
6462
#'
@@ -202,7 +200,7 @@ rand_pvals <- function(object = NULL, z = NULL, X = NULL,
202200
#'
203201
#'
204202
#' @details The `options` list argument can contain any of the following elements:
205-
#' \itemize{
203+
#' \describe{
206204
#' \item{nrand: }{how many times to randomize the treatment assignment when forming the null distribution.
207205
#' Default is 10000}
208206
#' \item{criterion: }{which optimization criterion to use when calculating the objective value.
@@ -213,7 +211,7 @@ rand_pvals <- function(object = NULL, z = NULL, X = NULL,
213211
#' Only used if criterion is set to "combo". Default is 5}
214212
#' \item{incl_base: }{whether to include columns for the initial stratification in the table.
215213
#' Default is `TRUE` if a base stratification is provided}
216-
#' \item{rand_pvals: if already calculated, the returned list of information from \code{\link{rand_pvals}()}.
214+
#' \item{rand_pvals: }{if already calculated, the returned list of information from \code{\link{rand_pvals}()}.
217215
#' If `NULL`, this will be calculated}
218216
#' }
219217
#' @return Matrix with 4 or 8 columns, depending whether one or both of base and

R/refine.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#'
2121
#' @details
2222
#' The `options` argument can contain any of the following elements:
23-
#' \itemize{
23+
#' \describe{
2424
#' \item{solver: }{character specifying the optimization software to use.
2525
#' Options are "Rglpk" or "gurobi". The default is "Rglpk" unless a gurobi installation is detected,
2626
#' in which case it is set to "gurobi". It is recommended to use "gurobi" if available.}
@@ -47,13 +47,12 @@
4747
#'
4848
#'
4949
#' @return Object of class "strat", which is a list object with the following components:
50-
#' \itemize{
5150
#' \item{z: }{treatment vector}
5251
#' \item{X: }{covariate matrix}
5352
#' \item{base_strata: }{initial stratification}
5453
#' \item{refined_strata: }{refined_stratification}
5554
#' \item{details: }{various details about the optimization that can be ignored in practice, but may be interesting:
56-
#' \itemize{
55+
#' \describe{
5756
#' \item{valueIP, valueLP: }{integer (determined via randomized rounding, unless `integer` option set to true)
5857
#' and linear programming scaled objective values}
5958
#' \item{n_fracs: }{number of units with fractional LP solutions}
@@ -67,7 +66,6 @@
6766
#' \item{X_std: }{standardized version of `X`}
6867
#' }
6968
#' }
70-
#' }
7169
#'
7270
#'
7371
#' @export

R/split_stratum.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#' @param threads how many threads to use in the optimization if using "gurobi" as the solver. Default will use all available threads
2121
#'
2222
#' @return A list containing the following elements:
23-
#' \itemize{
2423
#' \item{valueIP, valueLP: }{integer and linear programming scaled objective values}
2524
#' \item{n_smds: }{number of standardized mean differences contributing to the objective values
2625
#' (multiply the scaled objective values by this number to get the true objective values)}
@@ -29,7 +28,6 @@
2928
#' that were selected with randomness}
3029
#' \item{pr: }{linear programming solution, with rows corresponding to the strata and columns to the units}
3130
#' \item{selection: }{vector of selected strata for each unit in the initial stratum to be split}
32-
#' }
3331
#'
3432
#' @examples
3533
#' # Generate a small data set

man/best_split.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rand_pvals.Rd

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/refine.Rd

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/split_stratum.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/table_rand_pvals.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)