search for: nobst

Displaying 1 result from an estimated 1 matches for "nobst".

Did you mean: nobs
2012 Dec 18
0
R function for computing Simultaneous confidence intervals for multinomial proportions
...bserved mydata2=ddply(mydata,.(sub,per,pos),summarize,nobs=length(pos),.drop=F) mydata2[,1:3]=catcolwise(function(x)as.factor(x))(mydata2) summary(mydata2) # boxplot of frequencies of occpupancy require(ggplot2) mydata2$fobs=mydata2$nobs/21 ggplot(mydata2)+geom_boxplot(aes(pos,fobs)) ###chi2 test nobsT=ddply(mydata,.(pos),summarize,T=length(pos)) nobsT=nobsT[,2] chisq.test(nobsT) #######################bootstraping of the mean proportions over the 12 replicats require(boot) maf=function(data,index){o=ddply(data[index,],.(pos),summarize,mmea=mean(fobs),.drop=F);as.vector(o[,2])} bootobj=boot(myd...