Print output of a MAR model
print.MAR.Rd
Method for printing components of an object of class MAR
that provide a concise overview of the model
Usage
# S3 method for MAR
print(x,...)
Details
Formats and prints the following components of a MAR
object when the object's name is called: the time-series variables that were selected to be included in the model; any restrictions that were set on variable interactions; the search type used to select the best-fit model; and the coefficients, AIC values, and R^2 values of the best-fit and bootstrapped models. Other components of a MAR
object can be viewed by specifying their name according to str(object)
.
Examples
data(L4.mar)
myvar <- c(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 2)
myres <- matrix(0.5,
nrow = length(which(myvar == 1)),
ncol = length(which(myvar != 0))
)
small <- L4.mar[1:20,]
run1 <- run.mar(small, variables = myvar, restrictions = myres, search = "random", boot = FALSE)
#>
#>
#> searching for best-fit model...
#> ...BEST-FIT MODEL SELECTED
#> ( search time: 0 minutes 5 seconds )
#>
#>
#>
#> identifying 10 lowest AIC models...
#> ...TOP MODELS RETAINED
#>
#> ════════════════════════════════════════════════════════════════════════════════
#>
#>
print(run1)
#>
#> Variables Selected:
#> contin date cnidarian amphipod chaetognath krill
#> 0 0 0 1 0 0
#> pteropod tunicate cladoceran calanoid.lg calanoid.sm cyclopoid
#> 0 0 0 0 0 1
#> poecilostom harpact diatom dino other.algae cirripedia
#> 0 0 1 0 0 0
#> mero.grazers decapod surface.temp
#> 0 0 2
#> [0 = not included, 1 = variate, 2 = covariate]
#>
#> Restrictions Set:
#> amphip cyclop diatom surfac
#> amphipod · · · ·
#> cyclopoid · · · ·
#> diatom · · · ·
#>
#> Search Type: "random"
#> ________________________________________
#> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
#> Best-fit Model
#> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
#> B: C:
#> │ amphip cyclop diatom │ surfac
#> amphipod │ · · · │ ·
#> cyclopoid │ · · · │ ·
#> diatom │ · · · │ ·
#>
#> AIC: 177.853
#>
#> R^2 Values:
#> R2 R2_D
#> amphipod 0.00 0.44
#> cyclopoid 0.00 0.29
#> diatom 0.00 0.55