Update Kappa_Stan.R

n was not defined