I have created a dataset from the following:
set obs 10
gen goals=_n-1
gen alpha=1.4
gen beta=1
I want to use a gamma distribution function to estimate the likelihood for each observation in goals given the alpha and beta parameters defined. I believe i need to do this in mata but have never used this programming language and am at a loss of to create the function in mata and then access that function to generate a new variable
Giulio DiDiodato
Related Posts with Creating a gamma distribution function to estimate likelihoods
Kalman Filter and VARMADears i have 3 variables being time, index and stock I would like to estimate a Kalman Filter for st…
retain string starting with certain valueHello! I have some stock codes (the variable is called ticker) which start with different numbers a…
Rename variables within loop - ambiguous abbreviation errorHello, I have biannual files called "job_history" with a year suffix at the end (job_history_1992, j…
Coding parental status in longitudinal data with multiple family members (i.e., parents + children) observedI'm working with longitudinal data that, for every family unit observed, includes observations for b…
Time-invariant characteristics conflict in panel data.Dear all, I am reading a description of panel data. According to the description, it says that gend…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a gamma distribution function to estimate likelihoods
Post a Comment