BPFhat {BayesBP}R Documentation

Two dimensional Bernstein polynomial

Description

Given Bernstein polynomial coeffients to compute Fhat.

Usage

BPFhat(coef, ages, years, basis)

Arguments

coef

Bernstein polynomial coefficients.

ages

Range of ages.

years

Range of years.

basis

Bernstein polynomial basis.

Value

This function return outer Bernstein polynomial using coefficients.

See Also

Other outer Bernstein polynomial: PD_BPFhat()

Examples

coef <- runif(9)
ages <- 35:85
years <- 1988:2007
list.basis <- BPbasis(ages,years,10)
BPFhat(coef,ages,years,list.basis)

[Package BayesBP version 1.1 Index]