Learn R Programming

forestecology (version 0.2.3)

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

424

Version

0.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Albert Y Kim

Last Published

August 24th, 2026

Functions in forestecology (0.2.3)

growth_spatial_ex

Example growth data frame with spatial data for small example
growth_toy

Example input data for create_focal_vs_comp()
forestecology

forestecology package
predict.comp_bayes_lm

Make predictions based on fitted Bayesian model
create_bayes_lm_data

Create input data frame for Bayesian regression
compute_growth

Compute growth of trees
reexports

Objects exported from other packages
run_cv

Run the bayesian model with spatial cross validation
study_region_ex

Study region for example data
study_region_bw

Bigwoods forest study region boundary
%>%

Pipe operator
species_bw

Phylogenic groupings and trait based clustering of various tree species
comp_bayes_lm

Fit Bayesian competition model
census_2014_bw

Michigan Big Woods research plot data
compute_buffer_region

Compute buffer to a region.
autoplot.comp_bayes_lm

Plot Bayesian model parameters
add_buffer_variable

Identify trees in the buffer region
focal_vs_comp_distance

Return all pairwise distances between two data frames of trees
create_focal_vs_comp

Create focal versus competitor trees data frame
growth_ex

Example growth data frame for small example
focal_vs_comp_ex

Example focal versus comp data frame
blocks_ex

Example cross validation grid
census_2008_bw

Michigan Big Woods research plot data
census_1_ex

Example input census data for package use
census_2_ex

Example input census data for package use
comp_bayes_lm_ex

Example bayesian competition model fit