create_bayes_lm_data {forestecology}R Documentation

Create input data frame for Bayesian regression

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

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

create_bayes_lm_data(focal_vs_comp_ex)

[Package forestecology version 0.2.0 Index]