Displaying 4 results from an estimated 4 matches for "submean".
Did you mean:
submeans
2006 Feb 26
2
subtotal, submean, aggregate
Dear All,
I would like to make partial sums (or means or any other function) of
the values in intervals along a sequence (spatial transect) where groups
are defined.
For instance:
habitats<-rep(c("meadow","forest","meadow","pasture"),c(10,5,12,6))
observations<-rpois(length(habitats),2)
2011 Jun 30
2
volcano plot.r
...2!") else {
#
# Split the matrix by group
#
new_mats<-c()
for (ii in 1:length(grp_levs))
new_mats[ii]<-list(data[which(groups==levels(groups)[ii]),])
#
# Calculate the means
#
# For each matrix, calculate the averages per column
submeans<-c()
# Preallocate a matrix for the means
means<-matrix(
nrow = 2,
ncol = length(colnames(data[,-1])),
dimnames = list(grp_levs,colnames(data[,-1]))
)
# Calculate the means for each variable per sample
for (ii in 1:length(new_mats))
{su...
2011 Jun 20
2
(no subject)
...2!") else {
#
# Split the matrix by group
#
new_mats<-c()
for (ii in 1:length(grp_levs))
new_mats[ii]<-list(data[which(groups==levels(groups)[ii]),])
#
# Calculate the means
#
# For each matrix, calculate the averages per column
submeans<-c()
# Preallocate a matrix for the means
means<-matrix(
nrow = 2,
ncol = length(colnames(data[,-1])),
dimnames = list(grp_levs,colnames(data[,-1]))
)
# Calculate the means for each variable per sample
for (ii in 1:length(new_mats))
{su...
2011 Jun 30
0
help with interpreting what nnet() output gives:
...2!") else {
? ? #
? ? # ? ?Split the matrix by group
? ? #
? ? new_mats<-c()
? ? for (ii in 1:length(grp_levs))
? ? ? ? new_mats[ii]<-list(data[which(groups==levels(groups)[ii]),])
? ??
? ? #
? ? # ? ?Calculate the means
? ? #
? ? # For each matrix, calculate the averages per column
? ? submeans<-c()
? ? # Preallocate a matrix for the means
? ? means<-matrix(
? ? ? ? nrow = 2,
? ? ? ? ncol = length(colnames(data[,-1])),
? ? ? ? dimnames = list(grp_levs,colnames(data[,-1]))
? ? ? ? )
? ? # Calculate the means for each variable per sample
? ? for (ii in 1:length(new_mats))
? ? ? ? {su...