example_data_WprevSeSp <- list(
x = c(
53, 47, 63, 50, 54, 54, 57, 51, 66, 51, 52, 48, 37, 44, 59,
55, 50, 58, 52, 54, 41, 45, 49, 54, 37, 53, 57, 58, 55, 55, 56,
42, 58, 47, 49, 63, 54, 54, 54, 41, 43, 56, 44, 49, 47, 45, 62,
53, 54, 47
),
n = c(
200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200
),
w = c(
0.0205962892844504, 0.0204062236737538, 0.0203843096373626,
0.0202785701233134, 0.0202617051778543, 0.0202138087214499, 0.0201972974884707,
0.0201818190015587, 0.0201631543739836, 0.0201560795402158, 0.0201555234250465,
0.0201461978246263, 0.0201342022821394, 0.0201264004067009, 0.0201167314250592,
0.0201015081093692, 0.0201003484427457, 0.0201002680000886, 0.0200817537259523,
0.0200573433887284, 0.0200443907258367, 0.0200358187073312, 0.0200349749335002,
0.0200264994605187, 0.0200112846914561, 0.020006219121804, 0.0199975642569458,
0.0199649774153205, 0.0199614929059539, 0.0199426355876479, 0.0199334287088002,
0.0199298633246975, 0.0199150015155486, 0.0199063452368827, 0.0198920051366782,
0.0198877425787182, 0.0198679831412633, 0.0198500844815989, 0.0198381388412286,
0.0198348595904904, 0.0198348180141822, 0.0198174510243331, 0.0197922036364436,
0.0197821574067888, 0.0197204417557631, 0.0197004976818864, 0.019682896458092,
0.019649677766428, 0.0196158425485035, 0.019563169292488
),
cn = 77,
cp = 58,
mn = 300,
mp = 60
)
WprevSeSp(
method = "binomial",
x = example_data_WprevSeSp$x,
n = example_data_WprevSeSp$n,
w = example_data_WprevSeSp$w,
cn = example_data_WprevSeSp$cn,
mn = example_data_WprevSeSp$mn,
cp = example_data_WprevSeSp$cp,
mp = example_data_WprevSeSp$mp
)
WprevSeSp(
method = "poisson",
x = example_data_WprevSeSp$x,
n = example_data_WprevSeSp$n,
w = example_data_WprevSeSp$w,
cn = example_data_WprevSeSp$cn,
mn = example_data_WprevSeSp$mn,
cp = example_data_WprevSeSp$cp,
mp = example_data_WprevSeSp$mp
)
Run the code above in your browser using DataLab