R/RcppExports.R

Defines functions mvlogrank gehan

Documented in gehan mvlogrank

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Gehan test
#'
#' Computes the multivariate Gehan test statistic.
#'
#' @param x Matrix
#' @param y Matrix
#' @param delta_x Matrix
#' @param delta_y Matrix
#' @param n1 Integer. Set as the number of rows in x
#' @param n2 Integer. Set as the number of rows in y
#' @param p Integer. Set as the number of columns in x and y
#' @param k Integer.
#' @param l Integer.
#'
#' @return 1x1 matrix containing a numeric 
#'
#' @export
gehan <- function(x, y, delta_x, delta_y, n1, n2, p, k = 1L, l = 1L) {
    .Call('_MultSurvTests_gehan', PACKAGE = 'MultSurvTests', x, y, delta_x, delta_y, n1, n2, p, k, l)
}

#' Mvlogrank test
#'
#' Computes the multivariate logrank test statistic.
#'
#' @param x Matrix
#' @param y Matrix
#' @param delta_x Matrix
#' @param delta_y Matrix
#' @param n1 Integer. Set as the number of rows in x
#' @param n2 Integer. Set as the number of rows in y
#' @param p Integer. Set as the number of columns in x and y
#' @param k Integer.
#' @param l Integer.
#' 
#' @return 1x1 matrix containing a numeric 
#'
#' @export
mvlogrank <- function(x, y, delta_x, delta_y, n1, n2, p, k = 1L, l = 1L) {
    .Call('_MultSurvTests_mvlogrank', PACKAGE = 'MultSurvTests', x, y, delta_x, delta_y, n1, n2, p, k, l)
}

Try the MultSurvTests package in your browser

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

MultSurvTests documentation built on June 18, 2021, 9:07 a.m.