Learn R Programming

rshift (version 3.1.2)

regime_means: Calculate means for each regime

Description

calculates the mean for each regime in a regime shift analysis.

Usage

regime_means(data, col, rsi)

Value

A vector of the mean value for each regime.

Arguments

data

The dataframe that will be used.

col

The column we are measuring change on.

rsi

The column containing RSI values.

Examples

Run this code
regime_means(lake_RSI, "DCA1", "RSI")

Run the code above in your browser using DataLab