Min. 1st Qu. Median Mean 3rd Qu. Max.
18.00 19.00 20.00 20.31 22.00 24.00
#Gender
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
#Gender
0 1 10 11 12 13 14 15 16 17 18 19 2 20 21 3 4 5 6 7 8 9
5 20 30 18 17 13 8 10 5 4 5 14 18 7 3 32 26 23 30 43 37 32
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 4.00 8.00 8.19 11.00 21.00
[1] 8.19
[1] 4.895284
Sex and practice of safe sex
Call:
lm(formula = Durias1$Sexcode ~ Durias$Score)
Residuals:
Min 1Q Median 3Q Max
-0.53255 -0.50076 0.00918 0.49527 0.55091
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.532549 0.048858 10.900 <2e-16 ***
Durias$Score -0.003974 0.005122 -0.776 0.438
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.5009 on 398 degrees of freedom
Multiple R-squared: 0.00151, Adjusted R-squared: -0.0009986
F-statistic: 0.602 on 1 and 398 DF, p-value: 0.4383
Call:
lm(formula = Durias1$Agecode ~ Durias$Score)
Residuals:
Min 1Q Median 3Q Max
-0.5151 -0.4034 -0.3604 0.5880 0.6654
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.334574 0.047828 6.995 1.13e-11 ***
Durias$Score 0.008599 0.005014 1.715 0.0871 .
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.4903 on 398 degrees of freedom
Multiple R-squared: 0.007335, Adjusted R-squared: 0.004841
F-statistic: 2.941 on 1 and 398 DF, p-value: 0.08714
With the result above, both gender and age are not significantly related to awareness regarding contraceptive use with p-values result of 0.438 and 0.0871 , respectively.
Pearson's product-moment correlation
data: Durias$Score and Durias$MeanScore
t = 4.3631, df = 398, p-value = 1.636e-05
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.1180745 0.3053085
sample estimates:
cor
0.2136527
WIth re result above, the p-value is 0.00001636 which means that students’ level of awareness and practice of safe sex are significantly related. Moreover the strength of association is 0.2137 which is weak positive correlation.