search for: marg2

Displaying 2 results from an estimated 2 matches for "marg2".

Did you mean: arg2
2010 Jan 28
0
using function boot
...ble from the two variables, divides each cell by the sum of the column to obtain percentage, does the median polish, and computes the median of some of the cells: >juste.polish<-function(data,w=rep(1,nrow(data))/nrow(data)) >{tableR<-table(data[,1],data[,2]) > tableP<-tableR > marg2<-apply(tableR,2,sum) > for (i in 1:nrow(tableP)) > {tableP[i,]<-100*(tableR[i,]/marg2)} >juste.medp<-medpolish(tableP) >median(c(juste.medp$residuals[dimnames(juste.medp$residuals)[[1]]=="e<60",1], > juste.medp$residuals[dimnames(juste.medp$residuals...
2007 Apr 27
4
Randomising matrices
I would like to be able to randomise presence-absence (i.e. binary) matrices whilst keeping both the row and column totals constant. Is there a function in R that would allow me to do this? I'm working with vegetation presence-absence matrices based on field observations. The matrices are formatted to have sites as rows and species as columns. The presence of a species on a site is