polyUni: polyUni

Description Usage Arguments Value

Description

Simulate a polynomial univariate relationship

Usage

1
polyUni(x, npoly, coef, deg)

Arguments

x

A vector

npoly

A numeric indicating the number of polynomial terms to simulate

coef

A vector indicating the coefficient for each polynomial term

deg

A vector indicating the degree of each polynomial term

coef

A numeric (supplied by linUniParm)

Value

coef[1]*x^deg[1] + ... + coef[npoly]*x^deg[npoly]


benkeser/haltmle.sim documentation built on May 12, 2019, noon