Skip to content

Commit

Permalink
Merge pull request #437 from ajdamico/print-replicates
Browse files Browse the repository at this point in the history
Print replicates
  • Loading branch information
ajdamico authored Oct 31, 2023
2 parents ed9b8a6 + 07adc45 commit 6c3c10f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/all_funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ T_fn <-
#' @method print cvystat
#' @export
print.cvystat <- function(x, ...) {

if ( inherits( x , "svrepstat" ) & is.list(x)) {
x <- x[[1]]
}

vv <- attr(x, "var")

if (attr(x, "statistic") %in% c("alkire-foster", "bourguignon-chakravarty", "bourguignon")) {
Expand Down Expand Up @@ -222,6 +227,7 @@ print.cvystat <- function(x, ...) {
#' @export
vcov.cvystat <- function (object, ...)
{
if ( inherits( object , "svrepstat" ) & is.list( object )) object <- object[[1]]
as.matrix(attr(object, "var"))
}

Expand Down

0 comments on commit 6c3c10f

Please sign in to comment.