Learn R Programming

brokenstick (version 1.1.0)

get_knots: Obtain the knots from a broken stick model

Description

Obtain the knots from a broken stick model

Usage

get_knots(object, what = c("all", "knots", "boundary", "droplast"), ...)

Arguments

object

An object of class brokenstick

what

A character vector of length 1. Valid values are

Not used "all", "knots", "boundary" or "droplast". The default is what = "all".

Value

A vector with knot locations, either both, internal only or boundary only. The result is NULL if object does not have proper class. The function can return numeric(0) if there are no internal knots.

Examples

Run this code
# NOT RUN {
get_knots(fit_200, "knots")
# }

Run the code above in your browser using DataLab