Skip to content

Commit 52e695e

Browse files
author
Keith Goldfeld
committedJun 17, 2023
A few minor last minute changes
1 parent c4a00ce commit 52e695e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed
 

‎R/internal_utility.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
evalFormula <- function(formula) {
8383
e$formula2parse <- formula
8484

85-
if ( grepl("%.*%", formula) || grepl("\\[.*,.*\\]", formula) ) {
85+
if ( grepl("%.*%|\\[.*,.*\\]", formula) ) {
8686
res <- with(e, {
8787
expr <- parse(text = as.character(formula2parse))
8888
tryCatch(

‎R/utility.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,9 @@ addCompRisk <- function(dtName, events, timeName,
994994
#' @param tolerance The minimum stopping distance between the adjusted low and high
995995
#' endpoints. Defaults to 0.001.
996996
#' @param sampleSize The number of units to generate for the bisection algorithm.
997-
#' The default is 5e+05. To get a reliable estimate, the value
998-
#' should be no smaller than 1e+05.
997+
#' The default is 1e+05. To get a reliable estimate, the value
998+
#' should be no smaller than the default, though larger values can be used, though
999+
#' computing time will increase.
9991000
#' @param trtName If either a risk ratio or risk difference is the target statistic,
10001001
#' a treatment/exposure variable name can be provided. Defaults to "A".
10011002
#' @details If no specific target statistic is specified, then only the intercept
@@ -1024,7 +1025,7 @@ addCompRisk <- function(dtName, events, timeName,
10241025
#' @concept utility
10251026
#'
10261027
logisticCoefs <- function(defCovar, coefs, popPrev, rr = NULL, rd = NULL,
1027-
auc = NULL, tolerance = 0.001, sampleSize = 5e+05, trtName = "A") {
1028+
auc = NULL, tolerance = 0.001, sampleSize = 1e+05, trtName = "A") {
10281029

10291030
### "initialize" variables
10301031

‎man/logisticCoefs.Rd

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/srcRcpp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Rcpp.h>
22
#include <pbv.h>
3-
#include<string.h>
3+
#include <string.h>
44

55
// [[Rcpp::depends(pbv)]]
66

0 commit comments

Comments
 (0)