tests/testthat/_problems/test_ivregranks_vcov-98.R

# Extracted from test_ivregranks_vcov.R:98

# setup ------------------------------------------------------------------------
library(testthat)
test_env <- simulate_test_env(package = "csranks", path = "..")
attach(test_env, warn.conflicts = FALSE)

# test -------------------------------------------------------------------------
data(mtcars)
model <- model <- ivregranks(r(mpg) ~ r(hp) + 1 | r(disp) + 1, data = mtcars)
projection_matrix <- calculate_projection_residual_matrix_ivregranks(model)

Try the csranks package in your browser

Any scripts or data that you put into this service are public.

csranks documentation built on Aug. 21, 2026, 9:13 a.m.