Skip to content

Commit e837ae1

Browse files
committed
buishand u test
1 parent d29ce70 commit e837ae1

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
reference: https://rdrr.io/cran/trend/man/bu.test.html
2+
3+
we use Buishand U test to get the change point of Nile dataset
4+
5+
![](bu_test_nile.png)
33.5 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
data(Nile)
2+
(out <- bu.test(Nile))
3+
par(mfrow=c(2,1))
4+
start=1871
5+
cp=unname(out$estimate)
6+
x=start+cp-1
7+
plot(Nile)
8+
abline(v=x,col='red')
9+
plot(out)
10+
abline(v=x,col='red')
11+

0 commit comments

Comments
 (0)