deleted state_analytic.R