cohlen: Cohlen et al data

cohlenR Documentation

Cohlen et al data

Description

A dataset containing the fertility crossover trial. Acquired from Supplementary materials of Reference Makubate, B., and Senn, S. (2010),Planning and Analysis of Cross-over Trials in Infertility, Statistics in Medicine, 29, 3203-3210.

Usage

cohlen

Format

A data frame with 320 rows and 10 variables for 74 unique patients:

group

group id

patient

patient id

period2

binary variable for period 2

period3

binary variable for period 3

period4

binary variable for period 4

period5

binary variable for period 5

period6

binary variable for period 6

treatment

binary

response

outcome –

period

integer variable for period

Source

http://senns.uk/InfCros/InfCROSInt.html

Examples

## Not run: 
#Proceed to fit various models
fit1 <- glmer(response~(1|patient),
              family=binomial,data=cohlen)#null model
fit2 <- glmer(response~treatment+(1|patient),family=binomial,data=cohlen)#treatment only
fit3 <- glmer(response~period2 + period3 + period4 + period5 +
                      period6 +(1|patient),family=binomial,data=cohlen)#period only, as a factor
#full model,period as a factor
fit4 <- glmer(response~treatment + period2 + period3 + period4 + period5 + period6+(1|patient),
               family=binomial,data=cohlen)
#period only, Period having a linear effect:
fit5 <- glmer(response~period+(1|patient),family=binomial,data=cohlen)
#full model,period having a linear effect:
fit6 <- glmer(response~treatment+period+(1|patient),family=binomial,data=cohlen)
summary(fit2)#Summary of model with treatment only
summary(fit4)#Summary of model with treatment and term
anova(fit3,fit4)

## End(Not run)

swihart/gnlrim documentation built on Oct. 18, 2023, 8:29 p.m.