Learn R Programming

VGAM (version 0.8-2)

AB.Ab.aB.ab2: The AB-Ab-aB-ab2 Blood Group System

Description

Estimates the parameter of the the AB-Ab-aB-ab2 blood group system.

Usage

AB.Ab.aB.ab2(link = "logit", earg=list(), init.p = NULL)

Arguments

link
Link function applied to p. See Links for more choices.
earg
List. Extra argument for the link. See earg in Links for general information.
init.p
Optional initial value for p.

Value

  • An object of class "vglmff" (see vglmff-class). The object is used by modelling functions such as vglm and vgam.

Warning

There may be a bug in the deriv and weight slot of the family function.

Details

This one parameter model involves a probability called p.

References

Elandt-Johnson, R. C. (1971) Probability Models and Statistical Methods in Genetics, New York: Wiley.

See Also

AA.Aa.aa, AB.Ab.aB.ab, ABO, G1G2G3, MNSs.

Examples

Run this code
# See Elandt-Johnson, pp.430,427
# Estimated variance is approx 0.0021
y = cbind(68, 11, 13, 21)
fit = vglm(y ~ 1, AB.Ab.aB.ab2(link=cloglog), trace=TRUE, crit="coef")
Coef(fit)   # Estimated p
rbind(y, sum(y)*fitted(fit))
sqrt(diag(vcov(fit)))

Run the code above in your browser using DataLab