R/guesspar.R

Defines functions vcov.guesspar coef.guesspar print.guesspar guesspar

Documented in coef.guesspar guesspar print.guesspar vcov.guesspar

guesspar <- function(object, ...) UseMethod("guesspar")

print.guesspar <- function(x, digits = max(3, getOption("digits") - 3),
  ...)
{
  cat("Item response guessing parameters (", attr(x, "model"), "):\n",
    sep = "")
  print(coef(x), digits = digits, ...)
  invisible(x)
}

coef.guesspar <- function(object, ...) {
  lbs <- names(object)
  object <- as.vector(object)
  names(object) <- lbs
  return(object)
}

vcov.guesspar <- function(object, ...) {
  attr(object, "vcov")
}

Try the psychotools package in your browser

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

psychotools documentation built on May 29, 2024, 8:12 a.m.