Allison
Allison
In order to assess her progress, you ask her to record how many times she cries each day.
The data you have is a measure of that.
The function "notrend_test" assesses the null hypothesis of the absence of a trend against various
alternatives determined by their corresponding tests.
data: cry
Student's t value = -4.9791, p-value < 2.2e-16
alternative hypothesis: linear trend.
sample estimates:
$AR_order
[1] 0
$AR_coefficients
numeric(0
The fact that the p-value is large accurately suggests that there is adequate evidence to reject the
notion of no trend in X0 and instead accept the alternative hypothesis of a linear trend.
c. With this information, which test of Type I error would you use?
> t1err=0
> n=51 # testing 10,000 times
> for (i in 1:n){
+ x=rnorm(100, 0, 1)
+ if (((t.test(x, mu=0))$p.value)<=0.05) (t1err=t1err+1)
+}
> cat("Type I error rate in percentage is", (t1err/n)*100,"%")
Type I error rate in percentage is 1.960784 %
Now open the Mother's file Mother is a client you are seeing in family therapy
who is arguing with her teenage daughter. The data you have is how many
arguments she has each month with her daughter?
Evaluate the Mother data in the same way you evaluated the Allison data.
1. Test for a trend in each phase and report your findings.
data: cry
Student's t value = -4.9791, p-value < 2.2e-16
alternative hypothesis: linear trend.
sample estimates:
$AR_order
[1] 0
$AR_coefficients
numeric(0)
𝐻0:𝜇=0.