Nothing
#' @export
E.SY<-function(N,a,y){
n<-N/a
y<-cbind(1,y)
y<-as.data.frame(y)
names(y)[1] <- "N"
Total<-matrix(NA,nrow=4,ncol=dim(y)[2])
rownames(Total)=c("Estimation", "Standard Error","CVE","DEFF")
colnames(Total)<-names(y)
for(k in 1:dim(y)[2]){
ty<-a*sum(y[,k])
Vty<-(N^2)*(1-(n/N))*var(y[,k])/(n)
CVe<-100*sqrt(Vty)/ty
VMAS<-(N^2)*(1-(n/N))*var(y[,k])/(n)
DEFF<-Vty/VMAS
Total[,k]<-c(ty,sqrt(Vty),CVe,DEFF)
}
return(Total)
}
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.