pred_splines: Prediction diagnostic.

View source: R/pred_splines.R

pred_splinesR Documentation

Prediction diagnostic.

Description

Visualize prediction fiiting and get

Usage

pred_splines(
  segdata,
  dsm_model,
  remove_intercept = FALSE,
  random = NULL,
  splines_by = NULL,
  alpha = 0.8
)

Arguments

segdata

segdata data.frame built with prepare_data_effort

dsm_model

The dsm model you want to use, built with fit_all_dsm.

remove_intercept

Remove intercept of model (beta[, 1] <- 0).

random

Variable to include random effect.

splines_by

Interaction with splines given by one variable of segdata.

alpha

coverage level for confidence interval.

Value

  1. df_splines : data.frame.

  2. g_splines : ggplot.

  3. spatial : data.frame.


MathieuGenu/geffaeR documentation built on March 23, 2022, 7:50 p.m.