
Last chance! 50% off unlimited learning
Sale ends in
Standardized functions to calibrate values to a certain baseyear.
calibrate_it(
origin,
cal_to,
cal_type = "convergence",
cal_year = NULL,
end_year = NULL,
report_calibration_factors = FALSE
)
Original Values (MAgPIE object)
Values to calibrate to (MAgPIE object).
"none" leaves the values as they are, "convergence" starts from the aim values and then linearily converges towards the values of origin, "growth_rate" uses the growth-rates of origin and applies them on aim.
year on which the dataset should be calibrated.
only for cal_type="convergence". Year in which the calibration shall be faded out.
prints out the multipliers which are used for calibration.
Calibrated dataset.
# NOT RUN {
pop <- maxample("pop")
test<-as.magpie(array(1000,dim(pop[,,"A2"]),dimnames(pop[,,"A2"])))
calibrate_it(origin=pop,cal_to=test[,"y1995",],cal_type="growth_rate")
calibrate_it(origin=pop,cal_to=test[,"y1995",],cal_type="convergence",
cal_year="y1995", end_year="y2055")
calibrate_it(origin=pop,cal_to=test[,"y1995",],cal_type="none")
# }
Run the code above in your browser using DataLab