# NOT RUN {
#Example
#Simulate
Xbl1 <- matrix(rnorm(1000),nrow=10)
Xbl2 <- matrix(rnorm(2000),nrow=10)
#check whether dimensions are correct
ncol(Xbl1)==nrow(Xbl2)
#create cross-product
XXbl <- createXXblocks(list(Xbl1,Xbl2))
#suppose penalties for two data types equal 5,10, respectively
Sigma <- SigmaFromBlocks(XXbl,c(5,10))
#check dimensions (should be n x n)
dim(Sigma)
# }
Run the code above in your browser using DataLab