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
Reshape long complicatedHi Statlist, I have a question for you about reshaping command. I have a quarterly sales dataset a…
Following different portfolios over timeI have a data set of American companies over the period 1985-2015 with circa 300k observations of le…
Exporting two-way tabulation results to excel (in stata 14)Hello, I want to export two-way tabulation using (row option and survey weights) results to excel. …
Survival Time Data - Long Form - How do I generate a variable that indicates the number of observations at risk within a subgroup of data?I have a dataset on legal cases and individual hearings for each case, across multiple courts. I hav…
How to change value labels?My variable "q2" has two values: 1 and 2. Their labels are No and Yes, respectively. Now I want to …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a gamma distribution function to estimate likelihoods
Post a Comment