The students ' attitudes towards sun protection and sun behavior before and after the educational intervention were compared and analyzed by the Pearson 's chi-square test and logistic regression analyses .