Learn R Programming

contdid (version 0.1.0)

choose_knots_even: Choose Evenly Spaced Knots

Description

A function to place equally spaced knots for fitting b-splines

Usage

choose_knots_even(x, num_knots)

Value

a vector containing the locations of the knots

Arguments

x

vector of treatment doses

num_knots

the number of knots to use