create_bayes_lm_data: Create input data frame for Bayesian regression

Description Usage Arguments Value See Also Examples

Description

This function "widens" focal-competitor data frames for use inside of package modeling functions, where each comp_sp inside of the comp list-column receives its own column with its associated total basal area.

This function is used internally by comp_bayes_lm() and predict.comp_bayes_lm() exported as a convenience for applications extending this package's functionality.

Usage

1
create_bayes_lm_data(focal_vs_comp, run_shuffle = FALSE)

Arguments

focal_vs_comp

data frame from create_focal_vs_comp()

run_shuffle

boolean as to whether to run permutation test shuffle of competitor tree species within a particular focal_ID

Value

Data frame for internal package use.

See Also

Other modeling functions: comp_bayes_lm(), predict.comp_bayes_lm(), run_cv()

Other data processing functions: compute_growth(), create_focal_vs_comp()

Examples

1

forestecology documentation built on Oct. 2, 2021, 5:07 p.m.