Illustrating the construction of a "fixed" local odds ratio structure
using the arthritis dataset. Here, we assume a uniform local odds ratios
structure equal to 2 for each time pair.
Create the uniform local odds ratios structure.
lorterm <- matrixLOR(matrix(2,4,4))
Create the LORterm argument.
lorterm <- c(lorterm)
lorterm <- matrix(c(lorterm),3,25,TRUE)
data(arthritis)
fitmod.fixed <- ordLORgee(y~factor(trt)+factor(time)+factor(baseline), id="id",
repeated="time", data=arthritis, LORstr="fixed", LORterm=lorterm)
fitmod.fixed
Run the code above in your browser using DataLab