tests/testthat/test-clm-profile.R

context("Testing error message from profile.clm")

expect_warning(
    fm2 <- clm(rating ~ contact, scale=~contact, nominal=~contact,
               data=wine)
    , "\\(1\\) Hessian is numerically singular")

expect_error(profile(fm2)
             , "Cannot get profile when vcov\\(fitted\\) contains NAs")

Try the ordinal package in your browser

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

ordinal documentation built on May 2, 2019, 5:47 p.m.