- using R Under development (unstable) (2026-11-17 r90922)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 23.1.5
flang version 23.1.5
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-11-18 19:07:55 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘geex/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘geex’ version ‘1.1.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: 'inferference'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘geex’ can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... NOTE
Namespace in Imports field not imported from:
‘rootSolve’
All declared Imports should be used.
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... NOTE
checkRd: (-1) geexex.Rd:10: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:11: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:12: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:13: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:14: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:15: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:16: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:17: Lost braces in \itemize; meant \describe ?
checkRd: (-1) geexex.Rd:18: Lost braces in \itemize; meant \describe ?
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [35s/40s] OK
Running ‘testthat.R’ [35s/40s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [19s/24s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘v00_geex_intro.Rmd’ using rmarkdown
| SB1_estfun <- function(data){
| Y1 <- data$Y1
| function(theta){
| c(Y1 - theta[1],
| (Y1 - theta[1])^2 - theta[2])
| }
| }
| library(geex)
| results <- m_estimate(
| estFUN = SB1_estfun,
| data = geexex,
| root_control = setup_root_control(start = c(1,1)))
| n <- nrow(geexex)
| A <- diag(1, nrow = 2)
|
| B <- with(geexex, {
| Ybar <- mean(Y1)
| B11 <- mean( (Y1 - Ybar)^2 )
| B12 <- mean( (Y1 - Ybar) * ((Y1 - Ybar)^2 - B11) )
| B22 <- mean( ((Y1 - Ybar)^2 - B11)^2 )
| matrix(
| c(B11, B12,
| B12, B22), nrow = 2
| )
| })
|
| # closed form roots
| theta_cls <- c(mean(geexex$Y1),
| # since var() divides by n - 1, not n
| var(geexex$Y1) * (n - 1)/ n )
|
| # closed form sigma
| Sigma_cls <- (solve(A) %*% B %*% t(solve(A))) / n
|
| comparison <- list(geex = list(estimates = coef(results), vcov = vcov(results)),
| cls = list(estimates = theta_cls, vcov = Sigma_cls))
| format(max(abs(comparison$geex$estimates - comparison$cls$estimates), abs(comparison$geex$vcov - comparison$cls$vcov)), digits = 1) #757:891
| comparison
| SB2_estfun <- function(data){
| Y1 <- data$Y1; Y2 <- data$Y2
| function(theta){
| c(Y1 - theta[1],
| Y2 - theta[2],
| theta[1] - (theta[3] * theta[2])
| )
| }
| }
| results <- m_estimate(
| estFUN = SB2_estfun,
| data = geexex,
| root_control = setup_root_control(start = c(1, 1, 1)))
| # Comparison to an analytically derived sanwich estimator
| A <- with(geexex, {
| matrix(
| c(1 , 0, 0,
| 0 , 1, 0,
| -1, mean(Y1)/mean(Y2), mean(Y2)),
| byrow = TRUE, nrow = 3)
| })
|
| B <- with(geexex, {
| matrix(
| c(var(Y1) , cov(Y1, Y2), 0,
| cov(Y1, Y2), var(Y2) , 0,
| 0, 0, 0),
| byrow = TRUE, nrow = 3)
| })
|
| ## closed form roots
| theta_cls <- c(mean(geexex$Y1), mean(geexex$Y2))
| theta_cls[3] <- theta_cls[1]/theta_cls[2]
| ## closed form covariance
| Sigma_cls <- (solve(A) %*% B %*% t(solve(A))) / nrow(geexex)
| comparison <- list(geex = list(estimates = coef(results), vcov = vcov(results)),
| cls = list(estimates = theta_cls, vcov = Sigma_cls))
| format(max(abs(comparison$geex$estimates - comparison$cls$estimates)), digits = 2) #261:346
| format(max(abs(comparison$geex$vcov - comparison$cls$vcov)), scientific = TRUE, digits = 2) #438:532
| comparison
| SB3_estfun <- function(data){
| Y1 <- data$Y1
| function(theta){
| c(Y1 - theta[1],
| (Y1 - theta[1])^2 - theta[2],
| sqrt(theta[2]) - theta[3],
| log(theta[2]) - theta[4])
| }
| }
| results <- m_estimate(
| estFUN= SB3_estfun,
| data = geexex,
| root_control = setup_root_control(start = rep(2, 4, 4, 4)))
| ## closed form roots
| theta_cls <- numeric(4)
| theta_cls[1] <- mean(geexex$Y1)
| theta_cls[2] <- sum((geexex$Y1 - theta_cls[1])^2)/nrow(geexex)
| theta_cls[3] <- sqrt(theta_cls[2])
| theta_cls[4] <- log(theta_cls[2])
|
| ## Compare to closed form ##
| theta2 <- theta_cls[2]
| mu3 <- moments::moment(geexex$Y1, order = 3, central = TRUE)
| mu4 <- moments::moment(geexex$Y1, order = 4, central = TRUE)
| ## closed form covariance
| Sigma_cls <- matrix(
| c(theta2, mu3, mu3/(2*sqrt(theta2)), mu3/theta2,
| mu3, mu4 - theta2^2, (mu4 - theta2^2)/(2*sqrt(theta2)), (mu4 - theta2^2)/theta2,
| mu3/(2 * sqrt(theta2)), (mu4 - theta2^2)/(2*sqrt(theta2)), (mu4 - theta2^2)/(4*theta2), (mu4 - theta2^2)/(2*theta2^(3/2)),
| mu3/theta2, (mu4 - theta2^2)/theta2, (mu4 - theta2^2)/(2*theta2^(3/2)), (mu4/theta2^2) - 1) ,
| nrow = 4, byrow = TRUE) / nrow(geexex)
| ## closed form covariance
| # Sigma_cls <- (solve(A) %*% B %*% t(solve(A))) / n
| comparison <- list(geex = list(estimates = coef(results), vcov = vcov(results)),
| cls = list(estimates = theta_cls, vcov = Sigma_cls))
| format(max(abs(comparison$geex$estimates - comparison$cls$estimates), abs(comparison$geex$vcov - comparison$cls$vcov)), digits = 2) #234:368
| comparison
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v00_geex_intro.Rmd’
--- re-building ‘v01_additional_examples.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v01_additional_examples.Rmd’
--- re-building ‘v02_sandwich_comparison.Rmd’ using rmarkdown
Quitting from v02_sandwich_comparison.Rmd:31-48 [example1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'inferference'
---
Backtrace:
▆
1. └─base::library(inferference)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'v02_sandwich_comparison.Rmd' failed with diagnostics:
there is no package called 'inferference'
--- failed re-building ‘v02_sandwich_comparison.Rmd’
--- re-building ‘v03_root_solvers.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v03_root_solvers.Rmd’
--- re-building ‘v04_weights.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v04_weights.Rmd’
--- re-building ‘v05_finite_sample_corrections.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v05_finite_sample_corrections.Rmd’
--- re-building ‘v06_causal_example.Rmd’ using rmarkdown
Quitting from v06_causal_example.Rmd:51-55 [packages]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'inferference'
---
Backtrace:
▆
1. └─base::library(inferference)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'v06_causal_example.Rmd' failed with diagnostics:
there is no package called 'inferference'
--- failed re-building ‘v06_causal_example.Rmd’
--- re-building ‘v07_geex_design.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘v07_geex_design.Rmd’
SUMMARY: processing the following files failed:
‘v02_sandwich_comparison.Rmd’ ‘v06_causal_example.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 2 NOTEs