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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in ‘catregs-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in ‘catregs-Ex.R’ failed
The error most likely occurred in:

> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in ‘catregs-Ex.R’ failed
The error most likely occurred in:

> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in 'catregs-Ex.R' failed
The error most likely occurred in:

> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in ‘catregs-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in ‘catregs-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in 'catregs-Ex.R' failed
The error most likely occurred in:

> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted
Running examples in 'catregs-Ex.R' failed
The error most likely occurred in:

> ### Name: compare.margins
> ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of
> ###   uncertainty is from a simulated draw from a normal distribution.
> ### Aliases: compare.margins
> 
> ### ** Examples
> 
> data("essUK")
> m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial")
> des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1)))
> des
  minority female religious      age
1        0      0  3.602404 53.14563
2        1      0  3.602404 53.14563
3        0      1  3.602404 53.14563
4        1      1  3.602404 53.14563
> ma1<-suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1,
+ variables="female",newdata=data.frame(minority=0,religious=3.6024,age=53.146))))
Error: There is no valid predictor variable. Please change the `variables` argument or supply an alternative data frame to the `newdata` argument.
Execution halted