bin.rsquare {sesem} | R Documentation |
Extract r-square values for dependant variables a spatial SEM for a particular lag distance bin
Description
extracts rsquare values from for dependent variables in a spatial SEM object for a particular lag distance bin in a readable format
Usage
bin.rsquare(spatial_model_results, bin = "binflat")
Arguments
spatial_model_results |
a list object produced by function run.Models |
bin |
Name of the bin that results are desired for. Defaults to flat (nonspatial) model |
Author(s)
Eric Lamb
References
Lamb, E. G., K. Mengersen, K. J. Stewart, U. Attanayake, and S. D. Siciliano. 2014. Spatially explicit structural equation modeling. Ecology 95:2434-2442.
See Also
sem
, make.covar
, runModels
, modelsummary
, bin.results
Examples
#data=truelove
#distancematrix<-calc.dist(truelove)
#Truelove_bins<-make.bin(distancematrix,type="ALL",p.dist=20)
#binsize<-Truelove_bins[1][[1]] #truelove lowland bin sizes
#binname<-Truelove_bins[2][[1]] #truelove lowland bin names
#covariances<-make.covar(truelove,distancematrix,binsize,binname)
#covariances
# path model for the truelove dataset
#spatial_model<-'
# Gram ~ Moisture
# N_Fix ~ Bryoph + Lich + SoilCrust
# SoilCrust ~ Bryoph + Lich + Gram + Shrubs + Forbs
# Bryoph ~ Gram + Shrubs + Forbs + Moisture
# Lich ~ Moisture + Forbs + Gram + Shrubs + Bryoph
# Forbs ~ Moisture
# Gram ~~ Forbs
# Shrubs ~ Moisture
# Gram ~~ Shrubs
# Shrubs ~~ Forbs
# '
#
#results<-runModels(spatial_model,covariances)
#The above script produces the sesem object stored as truelove_results
data=truelove_results
bin.rsquare(truelove_results)
bin.rsquare(truelove_results,bin="Bin2")
[Package sesem version 1.0.2 Index]