sd_net_change: Estimate the net change of a stock in discrete times

View source: R/output_utils.R

sd_net_changeR Documentation

Estimate the net change of a stock in discrete times

Description

Estimate the net change of a stock in discrete times

Usage

sd_net_change(sim_df, cumulative_var)

Arguments

sim_df

A data frame with the simulation output

cumulative_var

A string that indicates to which variable the discrete change will be estimated

Value

A dataframe.

Examples

test_output <- data.frame(time = seq(0, 2, by = 0.25),
                          C    = c(0, rep(5,4), rep(20, 4)))
sd_net_change(test_output, "C")

readsdr documentation built on May 29, 2024, 2:45 a.m.