get_info_gsnb {gscounts} | R Documentation |
Information level for log rate ratio
Description
Calculates the information level for the log rate ratio of the negative binomial model
Usage
get_info_gsnb(rate1, rate2, dispersion, followup1, followup2)
Arguments
rate1 |
numeric; rate in treatment group 1 |
rate2 |
numeric; rate in treatment group 2 |
dispersion |
numeric; dispersion (shape) parameter of negative binomial distribution |
followup1 |
numeric vector; individual follow-up times in treatment group 1 |
followup2 |
numeric vector; individual follow-up times in treatment group 2 |
Value
numeric; information level
Examples
# Calculates information level for case of 10 subjects per group
# Follow-up times of subjects in each group range from 1 to 3
get_info_gsnb(rate1 = 0.1,
rate2 = 0.125,
dispersion = 4,
followup1 = seq(1, 3, length.out = 10),
followup2 = seq(1, 3, length.out = 10))
[Package gscounts version 0.1-4 Index]