adjust_R_Rcpp_short_binomial: Probabilites of sharing a given number of visits

Description Usage Arguments Details Value Examples

Description

This is the C++ function that is called by Bonferroni_m.

Usage

1

Arguments

mat

matrix with 3 columns (unadjusted number of shared visits, number of visits of the first member, number of visits of the second member)

prob

probability of sharing a single visit, default 1/75

Details

written in C++

Value

a vector of probabilities to share the given number of visits for each pair

Examples

1
2
3
4
5
6
visits <- data.frame(Freq = c(1,1,1,2,3),
                     N_visits.x = c(46,39,10,40,55),
                     N_visits.y = c(68,68,68,24,24))
mat <- as.matrix(visits)
Bonferroni_mat <- adjust_R_Rcpp_short_binomial(mat, prob=1/75)
Bonferroni_mat

alexmarzel/svisits documentation built on May 12, 2019, 1:36 a.m.