# NOT RUN {
# Using example shinystan object 'eight_schools'
sso <- eight_schools
sso <- generate_quantity(sso, fun = function(x) x^2,
param1 = "tau", new_name = "tau_sq")
sso <- generate_quantity(sso, fun = "-",
param1 = "theta[1]", param2 = "theta[2]",
new_name = "theta1minus2")
# }
Run the code above in your browser using DataLab