Skip to content

Commit

Permalink
Merge pull request #34 from shyamrallapalli/shyamrallapalli-calibSamp…
Browse files Browse the repository at this point in the history
…le--patch-1

Update calibSample method argument check
  • Loading branch information
alexkowa authored Mar 20, 2024
2 parents 1b40ecf + 405d170 commit dd31a96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/calibSample.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ setMethod("calibSample", c(inp="df_or_dataObj_or_simPopObj", totals="dataFrame_o
args <- list(...)
if ( is.null(args$method) ) {
method <- "raking"
} else if (args$method %in% c("raking", "linear", "logit")) {
method <- args$method
} else {
stop("calibSample 'method' option should be one of c('raking', 'linear', 'logit') \n")
}
if ( is.null(args$bounds) ) {
bounds <- c(0,10)
Expand Down

0 comments on commit dd31a96

Please sign in to comment.