tests/testthat/01_name_random_effects.r

context("Creating the constraints")

# 
# test_that("fixed effects", {
#   KK   <- 5
#   nn   <- 5
#   gg   <- ordered( rep(LETTERS[1:KK],rep(nn,KK)), levels=c(LETTERS[1:KK]) )
#   uu   <- rep( 1:nn , nn )
#   mvec <- rep( c(1,2,3,4,5)/3 , rep(nn,KK) )
#   yy <- rnorm( nn*KK )*1 + mvec
# 
#   clme_out <- clme( yy ~ gg , constraints=list(order="simple", node=0, decreasing=FALSE)  )
# 
#   expect_is(    const01, "list" )
#   expect_equal( length(const01), 6 )
#   expect_equal( dim(const01$Anull), c(choose(KK,2)*2,2)  )
# 
# })
# 











        

Try the CLME package in your browser

Any scripts or data that you put into this service are public.

CLME documentation built on July 8, 2020, 5:49 p.m.