Description Objects from the Class Slots Methods Author(s) Examples
Encapsulate results from Niche Apportionment fitting
Objects can be created by calls of the form new("fitmodel", ...)
. Object results mainly from procedures executed from fitmodel
or fitmodelCl
call.
call
:Object of class "list"
containing:
Character containing model name.
Number of replicates.
Number of ranks.
Number of randomizations.
Logical value informing if observed values are counts (discrete).
Tstats
:Object of class "list"
containing:
Vector containing distribution of T values for mean.
Vector containing distribution of T values for variance.
Observed value of T for mean.
Observed value of T for variance.
Matrix containing p-value for mean and variance.
sim.stats
:Object of class "matrix"
containing mean and variance of simulated relative abundance of each rank.
sim.range
:Object of class "list"
containing:
Matrix containing minimum and maximum simulatated relative abundance mean of each rank.
Matrix containing minimum and maximum simulated relative abundance variance of each rank.
obs.stats
:Object of class "matrix"
containing mean and variance observed relative abundance of each rank of all replicates.
signature(x = "fitmodel")
: Plot histogram of simulated T values. Arguments are: stat
and arrow.col
.
signature(x = "fitmodel")
: Plot line of fitted model (mean of the each rank of the simulation for the model). Arguments are: stat
, base
, range
, range.lty
and range.col
.
signature(x = "fitmodel")
: Plot the ranked observed abundance (mean of each rank of the observed data). Arguments are: stat
and base
.
signature(x = "fitmodel")
: Quantile-Quantile plot (mean of observed data versus mean of fitted model). Arguments are: stat
, base
, range
, qqline
, range.lty
, range.col
, in.col
and out.col
.
signature(object = "fitmodel")
: Display the object summary.
Character informing the arrow color of observed T
value at histogram plot.
Numeric informing the base of logarithm. If this value is different of NULL
, then data are transformed to logarithm.
Character informing the color of observed fitted values (within of simulated range).
Character informing the color of observed non fitted values (out of simulated range).
Logical informing if qqline must be plotted.
Logical informing if minimum and maximum line must be plotted.
Character informing the color of range plot. When NULL
(default) is equal to col
.
Numerical informing the line type of range plot.
Character informing if line must be plotted using mean ("mean"
) or variance ("variance"
) of model simulation.
Mario J. Marques-Azevedo
Maintainer: Mario J. Marques-Azevedo <mariojmaaz@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | data <- matrix(nrow = 10, ncol = 40)
for(i in 1:length(data[ ,1])){
data[i, ] <- randFraction(N = 100, S = 40, count = FALSE)
}
m1 <- fitmodelCl(x = data, model = "randFraction", count = FALSE, nRand = 99, nCores = 2)
m1
plot(m1, base = 2)
lines(m1, base = 2, range = TRUE)
# QQplot
qqplot(m1, base = 2, range = TRUE)
# Histogram
hist(m1)
# List slots of S4 object slots
getSlots('fitmodel')
# Get slot with simulated stattistics
m1@sim.stats
# Get slot with observed data
m1@obs.stats
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.