Skip to content

Commit

Permalink
Add winebin option to Distance
Browse files Browse the repository at this point in the history
this option was only available in mrds
  • Loading branch information
LHMarshall committed Jun 13, 2023
1 parent e130c69 commit 9eace67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/ds.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
#' be used. The result with the best likelihood value will be selected. To
#' run only a specified optimizer set this value to either 'R' or 'MCDS'.
#' See [`mcds_dot_exe`](mrds::`mcds_dot_exe`] for setup instructions.
#' @param winebin If you are trying to use our MCDS.exe optimizer on a
#' non-windows system then you may need to specify the winebin. Please
#' see [`mcds_dot_exe`](mrds::`mcds_dot_exe`] for more details.
#' @param dht.group deprecated, see same argument with underscore, above.
#' @param region.table deprecated, see same argument with underscore, above.
#' @param sample.table deprecated, see same argument with underscore, above.
Expand Down Expand Up @@ -325,6 +328,7 @@ ds <- function(data, truncation=ifelse(is.null(cutpoints),
method="nlminb", quiet=FALSE, debug_level=0,
initial_values=NULL, max_adjustments=5, er_method=2, dht_se=TRUE,
optimizer = "both",
winebin = NULL,
# deprecated below here:
dht.group,
region.table,
Expand Down Expand Up @@ -508,7 +512,7 @@ ds <- function(data, truncation=ifelse(is.null(cutpoints),

# set up the control options
control <- list(optimx.method=method, showit=debug_level,
optimizer = optimizer)
optimizer = optimizer, winebin = winebin)

# if initial values were supplied, pass them on
if(!is.null(initial_values) & !aic.search){
Expand Down
5 changes: 5 additions & 0 deletions man/ds.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9eace67

Please sign in to comment.