Running examples in ‘mdmb-Ex.R’ failed
The error most likely occurred in:

> ### Name: mdmb_regression
> ### Title: Several Regression Models with Prior Distributions and Sampling
> ###   Weights
> ### Aliases: logistic_regression coef.logistic_regression
> ###   vcov.logistic_regression logLik.logistic_regression
> ###   summary.logistic_regression predict.logistic_regression
> ###   yjt_regression coef.yjt_regression vcov.yjt_regression
> ###   logLik.yjt_regression summary.yjt_regression predict.yjt_regression
> ###   bct_regression coef.bct_regression vcov.bct_regression
> ###   logLik.bct_regression summary.bct_regression predict.bct_regression
> ###   oprobit_regression coef.oprobit_regression vcov.oprobit_regression
> ###   logLik.oprobit_regression summary.oprobit_regression
> ###   predict.oprobit_regression
> 
> ### ** Examples
> 
> #############################################################################
> # EXAMPLE 1: Simulated example logistic regression
> #############################################################################
> 
> #--- simulate dataset
> set.seed(986)
> N <- 500
> x <- stats::rnorm(N)
> y <- 1*( stats::runif(N) < stats::plogis( -0.8 + 1.2 * x ) )
> data <- data.frame( x=x, y=y )
> 
> #--- estimate logistic regression with mdmb::logistic_regression
> mod1 <- mdmb::logistic_regression( y ~ x, data=data )
Loading required namespace: MASS
> summary(mod1)
-----------------------------------------------------------------
mdmb 1.5-8 (2021-01-21 13:00:54) 
R Under development (unstable) (2021-12-02 r81283) x86_64, linux-gnu | nodename=gannet.stats.ox.ac.uk | login=ripley 
Date of Analysis: 2021-12-02 21:15:07 
Time difference of 0.04844069 secs
Computation Time: 0.04844069 


Call:
mdmb::logistic_regression(formula = y ~ x, data = data)

Logistic regression 

-----------------------------------------------------------------
Optimizer = optim 
Converged = TRUE 
Convergence code = 0 

Number of observations = 500 
Number of iterations = 18 

Deviance = 546.1 
Log likelihood = -273.05 
Log prior = 0 
Log posterior = -273.05 

Number of estimated parameters = 2 
  Number of estimated beta parameters = 2 
  Number of estimated sigma parameters = 0 
  Number of estimated lambda parameters = 0 
  Number of estimated df parameters = 0 
  Number of estimated threshold parameters = 0 

AIC = 550.1  | penalty = 4    | AIC=-2*LL + 2*p  
AICc = 550.13  | penalty = 4.02    | AICc=-2*LL + 2*p + 2*p*(p+1)/(n-p-1)  (bias corrected AIC)
BIC = 558.53  | penalty = 12.43    | BIC=-2*LL + log(n)*p  
CAIC = 560.53  | penalty = 14.43   | CAIC=-2*LL + [log(n)+1]*p  (consistent AIC)

-----------------------------------------------------------------
Estimated Parameters
Error in Math.data.frame(list(parm = c("(Intercept)", "x"), est = c(-0.63311195715556,  : 
  non-numeric-alike variable(s) in data frame: parm
Calls: summary ... mdmb_regression_summary -> <Anonymous> -> Math.data.frame
Execution halted