LCCA_MC | R Documentation |
This R function will provide probabilistic LCCA for a projects with several uncertain initail cost components.
LCCA_MC( comp1 = NA, comp2 = NA, comp3 = NA, comp4 = NA, comp5 = NA, recurring_comp = NA, r, n, n_loop )
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 |
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.
LCCA_MC(comp1 = rnorm(10, mean=3, sd=1), r =0.05, recurring_comp = 10, n=10, n_loop = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.