LCCA_MC: Probabilistic Life Cycle Cost Analysis Based On Net Present...

View source: R/cdar.R

LCCA_MCR Documentation

Probabilistic Life Cycle Cost Analysis Based On Net Present Value

Description

This R function will provide probabilistic LCCA for a projects with several uncertain initail cost components.

Usage

LCCA_MC(
  comp1 = NA,
  comp2 = NA,
  comp3 = NA,
  comp4 = NA,
  comp5 = NA,
  recurring_comp = NA,
  r,
  n,
  n_loop
)

Arguments

comp1

A vector for the first initial cost component #Example for comp1 = rtriangle(n_loop, a =10, b = 200, c = 30)

comp2

A vector for the second initial cost component #Example for comp2 = rnorm(n_loop, mean=10, sd=3)

comp3

A vector for the third initial cost component #Example for comp3 = rlnorm(n_loop, meanlog = 10, sdlog = 1)

comp4

A vector for the forth initial cost component #Example for comp4 = runif(n_loop, min = 0, max = 25)

comp5

A vector for the fifth initial cost component #Example for comp5 = runif(n_loop, min = 0, max = 25)

recurring_comp

The annual reccuring benefit/cost of the project

r

Rate of Return

n

Investment Horizon (yearly)

n_loop

Number of Monte Carlo Iterations

Value

Returns the histogram plot of all recurring cost components (inputs) and histogram, kernel density, and cumulative density function plots of net present value and equivalent uniform value (outputs) for the project.

Examples

LCCA_MC(comp1 = rnorm(10, mean=3, sd=1), r =0.05, recurring_comp = 10,  n=10, n_loop = 1000)

Bahram-Abediniangerabi/ConstructionAnalyticsR documentation built on March 6, 2023, 7:52 a.m.