Man pages for JGCRI/ambrosia
An R package for calculating and analyzing food demand that is responsive to changing incomes and prices

apply.bias.correctionsApply bias corrections to model outputs
assign.sigma.QAssign observational errors to observed demand quantities
calc1epsCalculate the exponents in the demand equation.
calc1qCalculate demand quantities for a single set of inputs
calc.elas.actualCalculate actual elasticities using numerical derivatives.
calc.hicks.actualCalculate the actual Hicks elasticities using the Slutsky...
calc.pop.weightCalculate a weight factor based on the population.
calculate_ambrosia_paramsCalculates the 11 parameters for ambrosia using data...
compute_bias_correctionsCompute regional bias corrections.
create_dataset_for_parameter_fitCreate dataset with observational error for log likelihood...
data_used_for_original_paramDataset used for original parameter estimation
eta.constantGenerate an income elasticity function with constant income...
food.dmndCalculate food demand using the Edmonds, et al. model.
food.dmnd.byincomeTabulate food demand by per-capita-income
food.dmnd.byyearTabulate food demand by year for a model.
guiconstConstants used in the GUI
guiwidgetsInput widgets for food demand GUI app
lamks2nu1y0Convert the lambda and ks parameters to nu1 and y0
make.byincome.plotPlot model results by per-capita income
make.byyear.plotPlot model results by year
make.demand.plotPlot staple, nonstaple, and total demand output from the...
mc_data_exampleSample dataset of mc data
mc.food.dmnd.byyearCompute food demand by year
mc.make.byyear.plotMake the by-year plot for a set of monte carlo results by...
mcparam.clip.tailsFilter a Monte Carlo distribution by quantiles
mcparam.densityCreate a density plot for all of the MC variables
mcparam.itercountGet the iteration count for a monte carlo dataset.
mcparam.MLGet the maximum a-posteriori (MAP) parameters
mcparam.sampleSample the MC results using bootstrap sampling.
mc.setupCreate a posterior log-pdf function for monte carlo sampling...
merge_trn_tstCreate a merged dataset with training and test data, each...
namemcReturn the list of names for the parameters in the model.
plohiRecommended parameter limits for the model.
prepare.obsPrepare observations for use in the model.
processed_data_exampleSample dataset of processed data
read.mc.dataRead the Monte Carlo results file
recursive.partitionPartition input data into clusters with a minimum number of...
runappLaunch the interactive GCAM food demand model
testdataSample values for the demand model.
training_dataSample dataset of training data for ambrosia
vec2paramConvert a vector of parameters into a params structure.
JGCRI/ambrosia documentation built on June 11, 2025, 12:29 a.m.