Nothing
Aregres <-
function(behavior,phaseX,v1){
t1<-table(phaseX)
tmaxA<-t1[names(t1)==v1]
startA<-match(v1,phaseX)
endA<-tmaxA+startA-1
A<-behavior[startA:endA]
x1=(c(seq(1:tmaxA)))
regA<-lm(A~x1)
rA<-residuals(regA)
yA<-regA$coefficients[1]
BetaA<-regA$coefficient[2]
layout(rbind(1,2), heights=c(4,1))
plot(x1, A,lwd=2,type="o",col="red", xlab="time", ylab="behavior", bty='L',main=v1 )
abline(c(yA,BetaA),col='Blue',lty="dashed")
print(summary(regA))
KendalA<-MannKendall(A)
KendalA<-mmky1lag(A)
writeLines("-----------------Mann-Kendall Trend Test and Sen's Regression-------------------------")
print(KendalA)
writeLines("--------------------------------------------------------------------------------------")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.