Learn R Programming

insurancerating (version 0.8.2)

fit_gam: Deprecated NSE wrapper for risk_factor_gam()

Description

fit_gam() is deprecated as of version 0.8.0. Please use risk_factor_gam() instead.

In addition, note that column arguments must now be passed as strings (standard evaluation).

Usage

fit_gam(
  data,
  nclaims,
  x,
  exposure,
  amount = NULL,
  pure_premium = NULL,
  model = "frequency",
  round_x = NULL
)

Value

See risk_factor_gam().

Arguments

data

A data frame containing portfolio observations.

nclaims

Deprecated NSE argument for claim counts.

x

Deprecated NSE argument for the continuous risk factor.

exposure

Character string. Exposure column used as an offset or aggregation weight.

amount

Deprecated NSE argument for claim amounts.

pure_premium

Optional character string. Row-level risk-premium column. Required for model = "pure_premium" and aggregated using exposure weights.

model

Character string. Response context: "frequency", "severity" or "pure_premium". The deprecated value "burning" maps to "pure_premium".

round_x

Deprecated. Use round_risk_factor instead.