Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-/0/+ statistic for paired #329

Open
eheinzen opened this issue May 10, 2021 · 1 comment
Open

-/0/+ statistic for paired #329

eheinzen opened this issue May 10, 2021 · 1 comment

Comments

@eheinzen
Copy link
Collaborator

No description provided.

@alexflaris
Copy link

I tried using the following code (taken from q1q3 function):

Nnzp <- function(x, na.rm=TRUE, weights = NULL, ...) {
  y <- if(na.rm && allNA(x)) {
    NA_real_
  } else 
  n = sum(x<0, na.rm=T)
  z = sum(x==0, na.rm=T)
  p = sum(x>0, na.rm=T)
}
  as.tbstat(y, sep = ", ", sep2 = ", ")
}

Which works but I don't know how to:
-print only on the column that shows the differences instead of all columns
-print percentages

But I guess it's a start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants