Learn R Programming

PRA (version 0.3.0)

cv: Cost Variance (CV).

Description

Cost Variance (CV).

Usage

cv(ev, ac)

Value

The function returns the Cost Variance (CV) of work completed.

Arguments

ev

Earned Value.

ac

Actual Cost.

Examples

Run this code
# Set the BAC and actual % complete for an example project.
bac <- 100000
actual_per_complete <- 0.35

# Calcualte the EV
ev <- ev(bac, actual_per_complete)

# Set the actual costs and current time period and calculate the AC.
actual_costs <- c(9000, 18000, 36000, 70000, 100000)
time_period <- 3
ac <- ac(actual_costs, time_period)

# Calculate the CV and print the results.
cv <- cv(ev, ac)
cat("Cost Variance (CV):", cv, "\n")

Run the code above in your browser using DataLab