# NOT RUN {
# A 3 variate example
x <- cbind(rnorm(100), rnorm(100), rnorm(100))
# Generate the lg-object with default settings
lg_object <- lg_main(x)
# Estimate the local partial Gaussian correlation between X1 and X2 given X3 = 1 on
# a small grid
partial_correlations <- partial_cor(lg_object,
grid = cbind(-4:4, -4:4),
condition = 1)
# }
Run the code above in your browser using DataLab