# Example 1: Moderate Severity
# P-scale (all 4s), N-scale (all 3s), G-scale (all 2s)
p_vec <- rep(4, 7)
n_vec <- rep(3, 7)
g_vec <- rep(2, 16)
# Total = 28 + 21 + 32 = 81
panss_score(p_vec, n_vec, g_vec)
# Example 2: Minimum Score (Absent symptoms)
p_min <- rep(1, 7)
n_min <- rep(1, 7)
g_min <- rep(1, 16)
# Total = 30
panss_score(p_min, n_min, g_min)
Run the code above in your browser using DataLab