abo: Builds a vector with ABO blood group

View source: R/clinical.R

aboR Documentation

Builds a vector with ABO blood group

Description

Returns a vector with ABO blood groups according to user defined frequencies

Usage

abo(n = 100, probs = c(0.4658, 0.0343, 0.077, 0.4229))

Arguments

n

An integer to define the length of the returned vector

probs

A vector with the probabilities for blood group A, AB, B and O (in this order). The sum of the probabilities must be equal to one.

Value

A vector length n with ABO blood groups

Examples

abo(n = 100, probs = c(0.4658, 0.0343, 0.077, 0.4229))

balima78/simK documentation built on May 23, 2023, 5:02 p.m.