Learn R Programming

forestecology (version 0.2.1)

Fitting and Assessing Neighborhood Models of the Effect of Interspecific Competition on the Growth of Trees

Description

Code for fitting and assessing models for the growth of trees. In particular for the Bayesian neighborhood competition linear regression model of Allen (2020): methods for model fitting and generating fitted/predicted values, evaluating the effect of competitor species identity using permutation tests, and evaluating model performance using spatial cross-validation.

Copy Link

Version

Install

install.packages('forestecology')

Monthly Downloads

128

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Albert Y Kim

Last Published

August 27th, 2025

Functions in forestecology (0.2.1)

growth_spatial_ex

Example growth data frame with spatial data for small example
forestecology

forestecology package
create_focal_vs_comp

Create focal versus competitor trees data frame
compute_growth

Compute growth of trees
focal_vs_comp_distance

Return all pairwise distances between two data frames of trees
%>%

Pipe operator
focal_vs_comp_ex

Example focal versus comp data frame
create_bayes_lm_data

Create input data frame for Bayesian regression
growth_toy

Example input data for create_focal_vs_comp()
growth_ex

Example growth data frame for small example
predict.comp_bayes_lm

Make predictions based on fitted Bayesian model
run_cv

Run the bayesian model with spatial cross validation
study_region_bw

Bigwoods forest study region boundary
reexports

Objects exported from other packages
study_region_ex

Study region for example data
species_bw

Phylogenic groupings and trait based clustering of various tree species
blocks_ex

Example cross validation grid
compute_buffer_region

Compute buffer to a region.
census_2_ex

Example input census data for package use
census_1_ex

Example input census data for package use
census_2008_bw

Michigan Big Woods research plot data
comp_bayes_lm_ex

Example bayesian competition model fit
autoplot.comp_bayes_lm

Plot Bayesian model parameters
comp_bayes_lm

Fit Bayesian competition model
add_buffer_variable

Identify trees in the buffer region
census_2014_bw

Michigan Big Woods research plot data