This function is for use in models to create a circular predictor

pr_harmonic(theta, k = 4)

Arguments

theta

Paramter to model in radians

k

degrees of freedom

Value

A harmonic function

Examples

theta = 2
k = 1
df <- pr_harmonic(theta = 2, k = 1)