Fit.EF: Fit Exponential Family Density

Description Usage Arguments Value

View source: R/Fit.R

Description

Fit an exponential family distribution of degree d to a sample of observations z.

Usage

1
Fit.EF(z, b = NULL, d = 2, method = "poly")

Arguments

z

Observations.

b

Bins for discretizing

d

Polynomial degree.

method

Either "ns" for natural splines, or "poly" for orthogonal polynomials. Default is "poly".

Value

A list containing a function f for evaluating the fitted density, and the estimated regression coefficients beta.


zrmacc/LFDR documentation built on May 3, 2019, 9:01 p.m.