df_opt_dtgch_cbem4_rrlop: Optimal Linear Allocation based on dtgch cbem4 solved by...

Description Usage Format Source References Examples

Description

Generated by *https://fanwangecon.github.io/PrjOptiAlloc/articles/ffv_opt_solin_relow.html*, opti allocate and expected outcome. solin, linear solution. relow, relative to lowest

Usage

1

Format

csv

Source

https://www.sciencedirect.com/science/article/pii/S1570677X16300107

References

“Early life height and weight production functions with endogenous energy and protein inputs”, September 2016, 65-81, Economics & Human Biology, 22, Esteban Puentes, Fan Wang, Jere R. Behrman, Flavio Cunha, John Hoddinott, John A. Maluccio, Linda S. Adair, Judith Borja and Reynaldo Martorell

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(df_opt_dtgch_cbem4_rrlop)
ar_opti_inpalc <- df_opt_dtgch_cbem4_rrlop[['opti_allocate']]
ar_opti_expout <- df_opt_dtgch_cbem4_rrlop[['opti_exp_outcome']]
ar_opti_inpalc_cv <- (ar_opti_inpalc - mean(ar_opti_inpalc))/sd(ar_opti_inpalc)
ar_opti_expout_cv <- (ar_opti_expout - mean(ar_opti_expout))/sd(ar_opti_expout)
# Print
head(df_opt_dtgch_cbem4_rrlop, 10)
summary(df_opt_dtgch_cbem4_rrlop)
print('opti allocation and outcomes rescaled:')
print(cbind(ar_opti_expout_cv, ar_opti_inpalc_cv))

FanWangEcon/PrjOptiAlloc documentation built on Jan. 25, 2022, 6:55 a.m.