inst/doc/sgnd-boston.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(smoothic)

## -----------------------------------------------------------------------------
fit <- smoothic(
  formula = lcmedv ~ .,
  data = bostonhouseprice2,
  family = "sgnd", # Smooth Generalized Normal Distribution
  model = "mpr" # model location and scale
)

## -----------------------------------------------------------------------------
summary(fit)

fit$kappa # shape estimate

## ---- fig.width=10, fig.height=8----------------------------------------------
plot_paths(fit)

## ---- fig.width=10, fig.height=8----------------------------------------------
plot_effects(fit,
             what = c("ltax", "rm", "ldis"), # or "all" for all selected variables
             density_range = c(2.25, 3.75))

Try the smoothic package in your browser

Any scripts or data that you put into this service are public.

smoothic documentation built on Aug. 22, 2023, 5:07 p.m.