]> code.communitydata.science - ml_measurement_error_public.git/blobdiff - simulations/measerr_methods.R
changes from klone
[ml_measurement_error_public.git] / simulations / measerr_methods.R
index 98ab28d77aa36a78f484768242f3eba608712e5d..8f8eb5db082ff140885aee2cdd467258d2fddfbd 100644 (file)
@@ -23,7 +23,7 @@ likelihood.logistic <- function(model.params, outcome, model.matrix){
 }
 
 ## outcome_formula <- y ~ x + z; proxy_formula <- w_pred ~ y + x + z + x:z + x:y + z:y 
-measerr_mle_dv <- function(df, outcome_formula, outcome_family=binomial(link='logit'), proxy_formula, proxy_family=binomial(link='logit'),maxit=1e6, method='optim'){
+measerr_mle_dv <- function(df, outcome_formula, outcome_family=binomial(link='logit'), proxy_formula, proxy_family=binomial(link='logit'),maxit=1e6, method='optim',optim_method='L-BFGS-B'){
     df.obs <- model.frame(outcome_formula, df)
     proxy.model.matrix <- model.matrix(proxy_formula, df)
     proxy.variable <- all.vars(proxy_formula)[1]

Community Data Science Collective || Want to submit a patch?