Package: did2s Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Two-Stage-Difference-in-Differences.Rmd’ using rmarkdown Quitting from Two-Stage-Difference-in-Differences.Rmd:143-153 [static] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. --- Backtrace: ▆ 1. └─did2s::did2s(...) 2. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 3. │ └─base::withCallingHandlers(...) 4. ├─base::summary(est$second_stage, .vcov = cov) 5. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 6. └─fixest:::vcov.fixest(...) 7. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 8. └─dreamerr:::check_arg_core(...) 9. └─dreamerr:::send_error(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Two-Stage-Difference-in-Differences.Rmd' failed with diagnostics: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. --- failed re-building ‘Two-Stage-Difference-in-Differences.Rmd’ SUMMARY: processing the following file failed: ‘Two-Stage-Difference-in-Differences.Rmd’ Error: Vignette re-building failed. Execution halted Package: did2s Check: tests New result: ERROR Running ‘testthat.R’ [14s/14s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(did2s) Loading required package: fixest (Permanently remove the following message with fixest_startup_msg(FALSE).) FALSE did2s (v1.0.2). For more information on the methodology, visit To cite did2s in publications use: Butts, Kyle (2021). did2s: Two-Stage Difference-in-Differences Following Gardner (2021). R package version 1.0.2. A BibTeX entry for LaTeX users is @Manual{, title = {did2s: Two-Stage Difference-in-Differences Following Gardner (2021)}, author = {Kyle Butts}, year = {2021}, url = {https://github.com/kylebutts/did2s/}, } > > test_check("did2s") ! curl package not installed, falling back to using `url()` Running Two-stage Difference-in-Differences - first stage formula `~ 0 | unit + year` - second stage formula `~ i(treat, ref = FALSE)` - The indicator variable that denotes when treatment is on is `treat` - Standard errors will be clustered by `state` Argument 'combine.quick' is deprecated. Please use 'fixef.keep_names' instead. Running Two-stage Difference-in-Differences - first stage formula `~ 0 | unit + year` - second stage formula `~ i(rel_year, ref = Inf)` - The indicator variable that denotes when treatment is on is `treat` - Standard errors will be clustered by `state` Argument 'combine.quick' is deprecated. Please use 'fixef.keep_names' instead. Running Two-stage Difference-in-Differences - first stage formula `~ 0 | unit + year` - second stage formula `~ i(treat, ref = FALSE)` - The indicator variable that denotes when treatment is on is `treat` - Standard errors will be clustered by `state` Running Two-stage Difference-in-Differences - first stage formula `~ 0 | sid + year` - second stage formula `~ i(post, ref = 0)` - The indicator variable that denotes when treatment is on is `post` - Standard errors will be clustered by `state` Running Two-stage Difference-in-Differences - first stage formula `~ 0 | unit + temp^year` - second stage formula `~ i(treat, ref = FALSE)` - The indicator variable that denotes when treatment is on is `treat` - Standard errors will be clustered by `state` Argument 'combine.quick' is deprecated. Please use 'fixef.keep_names' instead. Running Two-stage Difference-in-Differences - first stage formula `~ 0 | unit + year` - second stage formula `~ i(treat, ref = FALSE)` - The indicator variable that denotes when treatment is on is `treat` - Standard errors will be clustered by `state` Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview. Estimating TWFE Model Estimating using Gardner (2021) Error : in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 41 rows. PROBLEM: it has 0 row instead of 41. Estimating using Callaway and Sant'Anna (2020) Estimating using Sun and Abraham (2020) Estimating using Borusyak, Jaravel, Spiess (2021) Estimating using Roth and Sant'Anna (2021) Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview. Estimating TWFE Model Estimating using Gardner (2021) Argument 'combine.quick' is deprecated. Please use 'fixef.keep_names' instead. Error : in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 41 rows. PROBLEM: it has 0 row instead of 41. Estimating using Callaway and Sant'Anna (2020) Estimating using Sun and Abraham (2020) Estimating using Borusyak, Jaravel, Spiess (2021) Estimating using Roth and Sant'Anna (2021) Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview. Estimating TWFE Model Estimating using Gardner (2021) Error : in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 41 rows. PROBLEM: it has 0 row instead of 41. Estimating using Callaway and Sant'Anna (2020) Estimating using Sun and Abraham (2020) Estimating using Borusyak, Jaravel, Spiess (2021) Estimating using Roth and Sant'Anna (2021) Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview. [ FAIL 6 | WARN 3 | SKIP 0 | PASS 5 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-did2s.R:15:2'): estimation runs ────────────────────────────── `did2s(...)` threw an unexpected error. Message: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-did2s.R:15:9 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─did2s::did2s(...) 8. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 9. │ └─base::withCallingHandlers(...) 10. ├─base::summary(est$second_stage, .vcov = cov) 11. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 12. └─fixest:::vcov.fixest(...) 13. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 14. └─dreamerr:::check_arg_core(...) 15. └─dreamerr:::send_error(...) ── Failure ('test-did2s.R:21:2'): estimation runs ────────────────────────────── `did2s(...)` threw an unexpected error. Message: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 41 rows. PROBLEM: it has 0 row instead of 41. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-did2s.R:21:9 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─did2s::did2s(...) 8. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 9. │ └─base::withCallingHandlers(...) 10. ├─base::summary(est$second_stage, .vcov = cov) 11. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 12. └─fixest:::vcov.fixest(...) 13. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 14. └─dreamerr:::check_arg_core(...) 15. └─dreamerr:::send_error(...) ── Failure ('test-did2s.R:27:2'): estimation runs ────────────────────────────── `did2s(...)` threw an unexpected error. Message: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-did2s.R:27:9 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─did2s::did2s(...) 8. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 9. │ └─base::withCallingHandlers(...) 10. ├─base::summary(est$second_stage, .vcov = cov) 11. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 12. └─fixest:::vcov.fixest(...) 13. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 14. └─dreamerr:::check_arg_core(...) 15. └─dreamerr:::send_error(...) ── Failure ('test-did2s.R:33:2'): estimation runs ────────────────────────────── `did2s(...)` threw an unexpected error. Message: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-did2s.R:33:9 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─did2s::did2s(...) 8. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 9. │ └─base::withCallingHandlers(...) 10. ├─base::summary(est$second_stage, .vcov = cov) 11. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 12. └─fixest:::vcov.fixest(...) 13. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 14. └─dreamerr:::check_arg_core(...) 15. └─dreamerr:::send_error(...) ── Failure ('test-did2s.R:41:2'): estimation runs ────────────────────────────── `did2s(...)` threw an unexpected error. Message: You cannot use predict() based on the initial regression since the fixed-effect 'temp^year' was combined using an algorithm dropping the FE values (but fast). Please re-run the regression using the argument 'fixef.keep_names=TRUE'. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-did2s.R:41:9 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─did2s::did2s(...) 8. └─did2s:::did2s_estimate(...) 9. ├─stats::predict(first_stage, newdata = data) 10. └─fixest:::predict.fixest(first_stage, newdata = data) ── Error ('test-did2s.R:49:3'): estimates match previous runs ────────────────── Error: in vcov.fixest(object, vcov = vcov, ssc = ...: Value `vcov` must be a square matrix with, in this context, 1 row. PROBLEM: it has 0 row instead of 1. Backtrace: ▆ 1. └─did2s::did2s(...) at test-did2s.R:49:3 2. ├─base::suppressWarnings(summary(est$second_stage, .vcov = cov)) 3. │ └─base::withCallingHandlers(...) 4. ├─base::summary(est$second_stage, .vcov = cov) 5. └─fixest:::summary.fixest(est$second_stage, .vcov = cov) 6. └─fixest:::vcov.fixest(...) 7. └─dreamerr::check_value(vcov, "square matrix nrow(value)", .value = n_coef) 8. └─dreamerr:::check_arg_core(...) 9. └─dreamerr:::send_error(...) [ FAIL 6 | WARN 3 | SKIP 0 | PASS 5 ] Error: Test failures Execution halted Package: ggfixest Check: examples New result: ERROR Running examples in ‘ggfixest-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ggcoefplot > ### Title: Draw coefficient plots and interaction plots from 'fixest' > ### regression objects. > ### Aliases: ggcoefplot ggiplot > > ### ** Examples > > library(ggfixest) > > ## > # Author note: The examples that follow deliberately follow the original > # examples from the coefplot/iplot help pages. A few "gg-" specific > # features are sprinkled within, with the final set of examples in > # particular highlighting unique features of this package. > > > # > # Example 1: Basic use and stacking two sets of results on the same graph > # > > # Estimation on Iris data with one fixed-effect (Species) > est = feols(Petal.Length ~ Petal.Width + Sepal.Length + Sepal.Width | Species, iris) > > ggcoefplot(est) Error: in coefplot(object, only.params = TRUE, ci_level = ....: The 2nd model raises and error: Argument 'object' must be either: i) a `fixest` estimation, ii) a matrix of coefficients table, or iii) a numeric vector of the point estimates. Currently it is neither of the three. NOTA: the argument `internal.only.i` is not a valid argument. Execution halted Package: ggfixest Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘ggiplot.Rmd’ using rmarkdown Quitting from ggiplot.Rmd:47-50 [est_did_plot_defaults] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! in coefplot(object, only.params = TRUE, ci_level = ....: The 2nd model raises and error: Argument 'object' must be either: i) a `fixest` estimation, ii) a matrix of coefficients table, or iii) a numeric vector of the point estimates. Currently it is neither of the three. NOTA: the argument `internal.only.i` is not a valid argument. --- Backtrace: ▆ 1. └─ggfixest::ggiplot(est_did) 2. └─ggfixest (local) iplot_data_func(...) 3. └─fixest::coefplot(...) 4. └─fixest:::coefplot_prms(...) 5. └─dreamerr::stop_up(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'ggiplot.Rmd' failed with diagnostics: in coefplot(object, only.params = TRUE, ci_level = ....: The 2nd model raises and error: Argument 'object' must be either: i) a `fixest` estimation, ii) a matrix of coefficients table, or iii) a numeric vector of the point estimates. Currently it is neither of the three. NOTA: the argument `internal.only.i` is not a valid argument. --- failed re-building ‘ggiplot.Rmd’ SUMMARY: processing the following file failed: ‘ggiplot.Rmd’ Error: Vignette re-building failed. Execution halted Package: ggfixest Check: tests New result: ERROR Running ‘tinytest.R’ [3s/3s] Running the tests in ‘tests/tinytest.R’ failed. Complete output: > ## Throttle CPU threads if R CMD check (for CRAN) > > if (any(grepl("_R_CHECK", names(Sys.getenv()), fixed = TRUE))) { + # fixest + if (requireNamespace("fixest", quietly = TRUE)) { + library(fixest) + setFixest_nthreads(1) + } + + # data.table + if (requireNamespace("data.table", quietly = TRUE)) { + library(data.table) + setDTthreads(1) + } + + # magick + if (requireNamespace("magick", quietly = TRUE)) { + library(magick) + magick:::magick_threads(1) + } + } (Permanently remove the following message with fixest_startup_msg(FALSE).) FALSE Linking to ImageMagick 7.1.1.43 Enabled features: fontconfig, freetype, fftw, heic, lcms, raw, webp, x11 Disabled features: cairo, ghostscript, pango, rsvg Using 2 threads [1] 1 > > > # Run tinytest suite > > if ( requireNamespace("tinytest", quietly=TRUE) ){ + + tinytest::test_package("ggfixest") + + } Loading required package: ggplot2 test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 0 tests test_aggr_es.R................ 48 tests 33 fails 0.7s test_fixest_multi.R........... 0 tests test_fixest_multi.R........... 0 tests test_fixest_multi.R........... 0 tests test_fixest_multi.R........... 0 tests test_fixest_multi.R........... 0 tests Error: in coefplot(object, only.params = TRUE, ci_level = ....: The 3rd model raises and error: Argument 'object' must be either: i) a `fixest` estimation, ii) a matrix of coefficients table, or iii) a numeric vector of the point estimates. Currently it is neither of the three. NOTA: the argument `internal.only.i` is not a valid argument. Execution halted Package: parameters Check: tests New result: ERROR Running ‘testthat.R’ [85s/43s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(parameters) > library(testthat) > > test_check("parameters") Starting 2 test processes [ FAIL 2 | WARN 0 | SKIP 125 | PASS 705 ] ══ Skipped tests (125) ═════════════════════════════════════════════════════════ • On CRAN (115): 'test-GLMMadaptive.R:1:1', 'test-averaging.R:1:1', 'test-backticks.R:1:1', 'test-bootstrap_emmeans.R:1:1', 'test-bootstrap_parameters.R:1:1', 'test-brms.R:1:1', 'test-compare_parameters.R:91:7', 'test-compare_parameters.R:95:5', 'test-complete_separation.R:14:5', 'test-complete_separation.R:24:5', 'test-complete_separation.R:35:5', 'test-coxph.R:79:5', 'test-efa.R:1:1', 'test-emmGrid-df_colname.R:1:1', 'test-equivalence_test.R:10:3', 'test-equivalence_test.R:18:3', 'test-equivalence_test.R:22:3', 'test-equivalence_test.R:112:3', 'test-factor_analysis.R:2:3', 'test-factor_analysis.R:124:3', 'test-format_model_parameters2.R:2:3', 'test-gam.R:30:1', 'test-get_scores.R:1:1', 'test-glmer.R:1:1', 'test-glmmTMB-2.R:1:1', 'test-glmmTMB-profile_CI.R:2:3', 'test-glmmTMB.R:8:1', 'test-group_level_total.R:2:1', 'test-helper.R:1:1', 'test-ivreg.R:54:3', 'test-include_reference.R:16:3', 'test-include_reference.R:69:3', 'test-include_reference.R:121:3', 'test-lmerTest.R:1:1', 'test-mipo.R:19:3', 'test-mipo.R:33:3', 'test-mmrm.R:1:1', 'test-model_parameters.anova.R:1:1', 'test-model_parameters.aov.R:1:1', 'test-model_parameters.aov_es_ci.R:183:3', 'test-model_parameters.aov_es_ci.R:294:3', 'test-model_parameters.aov_es_ci.R:344:3', 'test-model_parameters.aov_es_ci.R:397:3', 'test-model_parameters.bracl.R:5:1', 'test-model_parameters.cgam.R:1:1', 'test-model_parameters.coxme.R:1:1', 'test-marginaleffects.R:176:3', 'test-marginaleffects.R:199:3', 'test-model_parameters.epi2x2.R:1:1', 'test-model_parameters.fixest_multi.R:3:1', 'test-model_parameters.fixest.R:2:3', 'test-model_parameters.fixest.R:77:3', 'test-model_parameters.fixest.R:147:5', 'test-model_parameters.glmgee.R:1:1', 'test-model_parameters.logistf.R:1:1', 'test-model_parameters.logitr.R:1:1', 'test-model_parameters.glm.R:40:3', 'test-model_parameters.glm.R:76:3', 'test-model_parameters.mclogit.R:5:1', 'test-model_parameters.mediate.R:32:3', 'test-model_parameters.mixed.R:2:1', 'test-model_parameters.nnet.R:5:1', 'test-model_parameters.vgam.R:3:1', 'test-model_parameters_df.R:1:1', 'test-model_parameters_ordinal.R:1:1', 'test-model_parameters_random_pars.R:1:1', 'test-model_parameters_std.R:1:1', 'test-model_parameters_std_mixed.R:3:1', 'test-n_factors.R:10:3', 'test-n_factors.R:26:3', 'test-n_factors.R:76:3', 'test-p_adjust.R:1:1', 'test-p_direction.R:1:1', 'test-p_significance.R:1:1', 'test-p_value.R:14:1', 'test-panelr.R:1:1', 'test-pipe.R:1:1', 'test-pca.R:66:3', 'test-polr.R:2:1', 'test-plm.R:111:3', 'test-posterior.R:2:1', 'test-pool_parameters.R:11:3', 'test-pool_parameters.R:32:1', 'test-print_AER_labels.R:11:5', 'test-printing-stan.R:2:1', 'test-printing.R:1:1', 'test-pretty_names.R:65:5', 'test-pretty_names.R:82:7', 'test-quantreg.R:1:1', 'test-random_effects_ci.R:4:1', 'test-robust.R:2:1', 'test-rstanarm.R:2:1', 'test-sampleSelection.R:2:1', 'test-serp.R:16:5', 'test-printing2.R:15:7', 'test-printing2.R:22:7', 'test-printing2.R:27:7', 'test-printing2.R:32:7', 'test-printing2.R:37:7', 'test-printing2.R:49:7', 'test-printing2.R:91:7', 'test-printing2.R:127:7', 'test-svylme.R:1:1', 'test-visualisation_recipe.R:7:3', 'test-weightit.R:23:3', 'test-weightit.R:43:3', 'test-wrs2.R:58:3', 'test-standardize_parameters.R:31:3', 'test-standardize_parameters.R:36:3', 'test-standardize_parameters.R:61:3', 'test-standardize_parameters.R:173:3', 'test-standardize_parameters.R:298:3', 'test-standardize_parameters.R:333:3', 'test-standardize_parameters.R:426:3', 'test-standardize_parameters.R:516:3' • On Linux (5): 'test-model_parameters.BFBayesFactor.R:1:1', 'test-nestedLogit.R:78:3', 'test-random_effects_ci-glmmTMB.R:3:1', 'test-simulate_model.R:1:1', 'test-simulate_parameters.R:1:1' • TODO: check this test locally, fails on CI, probably due to scoping issues? (1): 'test-marginaleffects.R:280:3' • TODO: fix this test (1): 'test-model_parameters.lqmm.R:40:3' • TODO: this one actually is not correct. (1): 'test-model_parameters_robust.R:127:3' • empty test (2): 'test-wrs2.R:69:1', 'test-wrs2.R:81:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-model_parameters.fixest.R:113:3'): robust standard errors ──── `standard_error(mod, vcov = "HC3")` did not throw the expected error. ── Failure ('test-model_parameters.fixest.R:114:3'): robust standard errors ──── `parameters(mod, vcov = "HC3")` did not throw the expected error. [ FAIL 2 | WARN 0 | SKIP 125 | PASS 705 ] Error: Test failures Execution halted Package: sensemakr Check: tests New result: ERROR Running ‘testthat.R’ [65s/65s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(sensemakr) See details in: Carlos Cinelli and Chad Hazlett (2020). Making Sense of Sensitivity: Extending Omitted Variable Bias. Journal of the Royal Statistical Society, Series B (Statistical Methodology). > > test_check("sensemakr") [ FAIL 2 | WARN 0 | SKIP 2 | PASS 458 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-01-manual-tests.R:91:13', 'test-02-darfur.R:371:13' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-18-bounds-fixest.R:124:13'): Group benchmarks - simulations ──── Error in `fixest::feols(y ~ d + x1 + x2, data = data)`: To use lag/leads (with l()/f()): either provide the argument 'panel.id' with the panel identifiers OR set your data as a panel with function panel(). Backtrace: ▆ 1. └─fixest::feols(y ~ d + x1 + x2, data = data) at test-18-bounds-fixest.R:124:13 ── Error ('test-19-bias_functions-fixest.R:16:3'): Adjusted Partial R2 ───────── Error in `fixest::feols(y ~ d, data = data)`: To use lag/leads (with l()/f()): either provide the argument 'panel.id' with the panel identifiers OR set your data as a panel with function panel(). Backtrace: ▆ 1. └─fixest::feols(y ~ d, data = data) at test-19-bias_functions-fixest.R:16:3 [ FAIL 2 | WARN 0 | SKIP 2 | PASS 458 ] Error: Test failures Execution halted Package: summclust Check: tests New result: ERROR Running ‘testthat.R’ [19s/19s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(summclust) > > test_check("summclust") (Permanently remove the following message with fixest_startup_msg(FALSE).) FALSE Loading required namespace: fabricatr summclust.fixest(obj = feols_fit, cluster = ~group_id1, params = c("treatment", "log_income")) Number of observations: 95 97 99 104 98 93 116 102 100 96 Number of clusters: 7 coef tstat se p_val conf_int_l treatment 0.014634446 1.5882634 0.009214118 0.1466894 -0.006209337 log_income -0.001417457 -0.4237128 0.003345325 0.6817219 -0.008985108 conf_int_u treatment 0.035478230 log_income 0.006150194 N_G leverage partial-leverage-treatment Min. 93.00000000 0.1414602 0.09313171 1st Qu. 96.25000000 0.1655626 0.09505736 Median 98.50000000 0.1969216 0.09877701 Mean 100.00000000 0.2000000 0.10000000 3rd Qu. 101.50000000 0.2151630 0.10266611 Max. 116.00000000 0.3296761 0.11516014 coefvar 0.06497863 0.2705771 0.06531733 partial-leverage-log_income beta-treatment beta-log_income Min. 0.04745902 0.009432553 -4.418022e-03 1st Qu. 0.06474135 0.012721659 -1.545444e-03 Median 0.08748224 0.014827927 -1.478700e-03 Mean 0.10000000 0.014603939 -1.467387e-03 3rd Qu. 0.11591556 0.016141665 -9.697266e-04 Max. 0.22874955 0.020724656 4.721959e-05 coefvar 0.52899992 0.221676594 8.002307e-01 summclust.fixest(obj = feols_fit, cluster = ~group_id1, params = c("treatment", "log_income")) Number of observations: 95 97 99 104 98 93 116 102 100 96 Number of clusters: 7 coef tstat se p_val conf_int_l treatment 0.014634446 1.5882634 0.009214118 0.1466894 -0.006209337 log_income -0.001417457 -0.4237128 0.003345325 0.6817219 -0.008985108 conf_int_u treatment 0.035478230 log_income 0.006150194 N_G leverage partial-leverage-treatment Min. 93.00000000 0.1414602 0.09313171 1st Qu. 96.25000000 0.1655626 0.09505736 Median 98.50000000 0.1969216 0.09877701 Mean 100.00000000 0.2000000 0.10000000 3rd Qu. 101.50000000 0.2151630 0.10266611 Max. 116.00000000 0.3296761 0.11516014 coefvar 0.06497863 0.2705771 0.06531733 partial-leverage-log_income beta-treatment beta-log_income Min. 0.04745902 0.009432553 -4.418022e-03 1st Qu. 0.06474135 0.012721659 -1.545444e-03 Median 0.08748224 0.014827927 -1.478700e-03 Mean 0.10000000 0.014603939 -1.467387e-03 3rd Qu. 0.11591556 0.016141665 -9.697266e-04 Max. 0.22874955 0.020724656 4.721959e-05 coefvar 0.52899992 0.221676594 8.002307e-01 Loading required namespace: ggplot2 Loading required namespace: latex2exp Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric downloading the 'nlswork' dataset. downloading the 'nlswork' dataset. NOTE: 1/1/0/0 fixed-effect singletons were removed (2 observations). NOTE: 1/1/0/0 fixed-effect singletons were removed (2 observations). NOTE: 1 observation removed because of NA values (vcov: 1). NOTE: 1 observation removed because of NA values (vcov: 1). NOTE: 1 observation removed because of NA values (RHS: 1). [ FAIL 3 | WARN 0 | SKIP 6 | PASS 111 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-r-vs-stata-2.R:11:3', 'test-r-vs-stata.R:11:3' • packageVersion("sandwich") != "3.1.0" is TRUE (4): 'test-sandwich-vcovJK.R:7:3', 'test-sandwich-vcovJK.R:188:3', 'test-sandwich-vcovJK.R:368:3', 'test-sandwich-vcovJK.R:561:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-r-vs-stata.R:215:3'): test against stata - leverage, fixef absorb ── round(max(unlist(summclust_res$leverage_g)), 6) (`actual`) not equal to 20.011074 (`expected`). `actual`: 19.0 `expected`: 20.0 ── Failure ('test-r-vs-stata.R:221:3'): test against stata - leverage, fixef absorb ── round(mean(unlist(summclust_res$leverage_g)), 6) (`actual`) not equal to 5.333333 (`expected`). `actual`: 5.17 `expected`: 5.33 ── Failure ('test-r-vs-stata.R:269:3'): test against stata - leverage, fixef absorb ── round(summclust_res$coef_var_leverage_g, 6) (`actual`) not equal to 1.155829 (`expected`). `actual`: 1.138 `expected`: 1.156 [ FAIL 3 | WARN 0 | SKIP 6 | PASS 111 ] Error: Test failures Execution halted