[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Quang Nguyen <quangn@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: How can estimate dicount rate for each household in the panel data |

Date |
Tue, 17 Feb 2009 08:26:39 -1000 |

Dear all: I have the following sample data set: Household x y t 1 60 120 7 1 120 100 30 1 100 300 60 1 50 250 900 ... 2 2 2 ... I would like to estimate the discount rate for each household based on the fomular: x = y*exp(-rt), where r is the interest rate. I know that in Stata we can use: nl (x=y*(exp(*-{r}*t) for each household. My questions are: 1. How we can ask State to do the the above estimate for all household at the same time instead of one by one? 2. How can we save the ESTIMATED discount rates as an variable that can be used for latter analysis? For instance, on emay study the relationship between the household's discount rate and the educational level. Many thanks and Have A Great Day! > -- > "My father gave me the greatest gift anyone could give another person, he believed in me." - Jim Valvano -- "My father gave me the greatest gift anyone could give another person, he believed in me." - Jim Valvano * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: How can estimate dicount rate for each household in the panel data***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: RE: Generate Random Variable Given Percentile Values** - Next by Date:
**Re: st: RE: graph hbox with ylabel(angle())** - Previous by thread:
**st: Generate Random Variable Given Percentile Values** - Next by thread:
**st: RE: How can estimate dicount rate for each household in the panel data** - Index(es):

© Copyright 1996–2022 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |