Man pages for MichaelHoltonPrice/yada
Yet Another Demographic Analysis package

analyze_x_posteriorAnalyze an input density by calculating the mean and...
apply_cat_specApply a category specification to an input vector of original...
build_cindep_modelBuild a multivariate, conditionally independent model using...
build_file_pathBuild the path to a file in the data directory
build_lr_varBuild a left/right variable from the base variable, side...
build_univariate_cont_problemsBuild a list of univariate continuous problems
build_univariate_ord_problemsBuild a list of univariate ordinal problems
build_var_namesBuild a complete vector of variable names for the input data...
calc_bin_probCalculate bin probabilities for a univariate ordinal dataset
calc_ci_ordCalculate ordinal model confidence intervals
calc_cond_gauss_int_inputsCalculate the inputs to the conditional Gaussian integral
calc_conditional_gaussian_integralCalculate the conditional multivariate Gaussian integral over...
calc_jointCalculate the joint density probability p(x,y|th_x,th_y)
calc_kl_divCalculate the Kullback-Leibler (KL) divergence of a posterior...
calc_meanCalculate the mean response for a yada mean specification
calc_mean_univariate_contCalculate the mean for a univariate continuous model
calc_mean_univariate_ordCalculate the mean for a univariate ordinal model
calc_neg_log_lik_contCalculate the negative log-likelihood for a continuous model
calc_neg_log_lik_multivariateCalculate the overall (summed) negative log-likelihood
calc_neg_log_lik_ordCalculate the negative log-likelihood for an ordinal model
calc_neg_log_lik_scalar_multivariateCalculate the negative log-likelihood for a single...
calc_neg_log_lik_vect_contCalculate the vector of negative log-likelihoods for a...
calc_neg_log_lik_vect_multivariateUse a parallel for loop to calculate the vector of negative...
calc_neg_log_lik_vect_multivariate_chunk_innerThe inner function for calculating the negative...
calc_neg_log_lik_vect_multivariate_chunk_outerThe outer function for calculating the negative...
calc_neg_log_lik_vect_ordCalculate the vector of negative log-likelihoods for an...
calc_noiseCalculate the noise for a yada noise specification
calc_noise_univariate_contCalculate the noise for a univariate continuous model
calc_noise_univariate_ordCalculate the noise for a univariate ordinal model
calc_qCalculate the likelihood for a univariate ordinal model as a...
calc_trapez_weightsCalculate integration weights assuming the midpoint rule
calc_weib_mix_densityCaculate the density for a Weibull mixture model
calc_weib_mix_density_matrixCalculate the probability density function (PDF) matrix for a...
calc_x_densityCalculate the density for a model th_x, p(x|th_x)
calc_x_posteriorCalculate the posterior density of x
clear_temp_dirClear all the files in the temporary directory
combCalculate the combinadic
crossval_multivariate_modelsCalculate multivariate (cindep and cdep)...
crossval_univariate_modelsCross-validation of univariate models
dualCalculate the dual
elemCalculate the element
elem_to_indexConvert the element (a vector) to the corresponding index (a...
extract_univariate_param_vectExtract the parameter vector for a univariate fit from a...
fail_for_beta2A helper function to check whether the fits in TH_y fail for...
fit_multivariateFit a multivariate mixed cumulative probit model.
fit_univariate_contFit a univariate continuous model
fit_univariate_ordFit a univariate ordinal model
generate_cv_problemsA wrapper to generate the cross-validation problems
generate_mod_specGenerate mod_spec list for use in yada functions
generate_ord_ciGenerate the confidence intervals for a given a...
get_approx_x_range_contGet the approximate range of x-values given a single, known...
get_approx_x_range_ordGet the approximate range of x-values given a single, known...
get_best_univariate_paramsGet the parameters of the best cross-validated fits
get_JGet J for a yada model specification
get_KGet K for a yada model specification
get_mean_transform_categoriesReturn the transform categories (see...
get_multivariate_transform_categoriesReturn the categories used by [param_constr2uncontr] and...
get_noise_transform_categoriesReturn the transform categories (see...
get_non_singleton_groupsGet the non-singleton groups for the input group vector
get_num_foldsA helper function to identify univariate fit in a folder and...
get_num_training_problemsA helper function to identify the number of training problems...
get_num_var_meanGet the number of variables for a yada mean specification
get_num_var_multivariateGet the number of parameters for named variables of a...
get_num_var_noiseGet the number of variables for a yada noise specification
get_num_var_univariate_contGet the number of parameters for named variables of a...
get_num_var_univariate_ordGet the number of parameters for named variables of a...
get_univariate_cont_transform_categoriesGet the tranform categories for a univariate continuous model
get_univariate_indicesFor a multivariate model, get the indices in the full...
get_univariate_ord_transform_categoriesGet the tranform categories for a univariate ordinal model
get_univariate_variable_casesA helper function to check the files in data_dir to get the...
get_var_index_multivariateGet the indices in the parameter vector th_y of named...
get_var_index_multivariate_fastQuickly get the indices in the parameter vector th_y of named...
get_var_index_multivariate_mappingA helper function to build the mapping for...
get_var_index_univariate_contGet the variable indices for a univariate, continuous model...
get_var_index_univariate_ordGet the variable indices for a univariate, ordinal model...
get_z_full_fastQuickly extract the correlation vector, z
get_z_lengthGet the number of correlation terms for a yada model...
hjk_nll_wrapperA wrapper for calculating the negative log-likehood in...
init_univariate_ordInitialize a univariate ordinal model
is_cdepIs this model conditionally dependent?
load_best_univariate_modelLoad the best univariate model using saved univariate...
load_cp_dataLoad cumulative probit data from file
load_var_infoLoad variable information from file
mean_spec_int_to_strConvert from an integer to string representation of the mean...
merge_lr_varMerge a variable that has distinct left and right...
merge_multiple_lr_varMerge multiple variables that have distinct left and right...
noise_spec_int_to_strConvert from an integer to string representation of the noise...
param_constr_to_unconstrTransform a vector from a constrained to an unconstrained...
param_unconstr_to_constrTransform a vector from an unconstrained to a constrained...
parse_cat_specParse a category specification
parse_joined_modelParse a joined model to get the individual mean and noise...
parse_NA_valuesParse missing value information from var_info
plot_x_posteriorPlot the posterior density using the result of a call to...
prep_for_neg_log_lik_multivariatePrepare for the negative log-likelihood calculations
remove_missing_variablesFor a single observation, remove missing variables and...
renumber_groupsRenumber the groups in the input vector group0 so that the...
sample_x_posteriorSample from the posterior density of x
save_problemWrapper function to save problem files
sim_multivariateCreate simulated observations for a multivarate mixed...
sim_univariate_contSimulate a univariate ordinal model
sim_univariate_ordSimulate a univariate ordinal model
solve_cont_problemSolve a univariate continuous problem
solve_ord_problemSolve a univariate ordinal problem
vis_cont_fitVisualize a continuous fit
vis_ord_fitVisualize an ordinal fit
write_continuous_reportMake an Rmarkdown document in the results folder for a...
write_matrixA helper function to write a matrix to an Rmd file
write_ordinal_reportMake an Rmarkdown document in the results folder for an...
yada_sample_mcmcSample a likelihood function at a given temperature using an...
yada_tailored_annealingDo a tailored optimization using simulated annealing
MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.