est.lme(y,ia,ib)
Pinheiro, J., Bates, D., DebRoy, S., Sarkar, D.,R Development Core Team (2010) "nlme: Linear and Nonlinear Mixed Effects Models"
Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London.
Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York.
g <- rep(1:4,each=10)
r <- rep(rep(1:2,each=5),4)
## No differences (global null)
nulldata <- matrix(rnorm(400),nc=40)
## estimation
res <- est.lme(nulldata,g,r)
round(apply(res,2,summary),2)
Run the code above in your browser using DataLab