# NOT RUN {
data(ma2)
y <- ma2$data # the observed data
theta_true <- c(0.6, 0.2)
x <- matrix(0, 300, 50)
set.seed(100)
for(i in 1:300) x[i, ] <- ma2_sim(theta_true, 50)
# the standard Gaussian synthetic likelihood (the likelihood estimator used in BSL)
gaussianSynLike(y, x)
# the Gaussian synthetic likelihood with glasso shrinkage estimation
# (the likelihood estimator used in BSLasso)
gaussianSynLike(y, x, shrinkage = 'glasso', penalty = 0.1)
# the Gaussian synthetic likelihood with Warton shrinkage estimation
gaussianSynLike(y, x, shrinkage = 'Warton', penalty = 0.9)
# }
Run the code above in your browser using DataLab