# How to avoid some defined variables showed from the final results

When I do simulation, the result will show all prior parameter and the variable i defined in generated quantities. If I just want show the result for aie, ade, and aie2 only. how to avoid other defined variables showed from the final result.

``````generated quantities{
real ie1[N];
real ie2[N];
real de[N];
real aie1;
real aie2;
for (i in 1:N){
ie1[i]=alpha1*beta1*(exp(alpha1*X[i])/(1+exp(alpha1*X[i]))^2);
ie2[i]=alpha2*beta2;
de[i]=c;

}
aie1=mean(ie1);
aie2=mean(ie2);

}
``````

You may use brackets, for example:

``````generated quantities {
real variable_to_be_shown;
{
real variable_to_be_excluded = 2.0;
variable_to_be_shown = 1 + variable_to_be_excluded;
}
}
``````