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
Is there a way to highlight which obs are being omitted in clogit?Hello, I am trying to run clogit and I get the following note: "1,268 groups (11,377 obs) omitted b…
How to choose a reference category in multinomial logistic regression?Hello, I have 2 questions if anyone can help: 1) I have 2 groups (treatment and control), and the …
Newey-West estimation for time series data for multiple countriesHello there, I have a monthly dataset (6 dependent variables and 5 independent variables) for 23 co…
Is there a way to list the observations that share a particular set of values for one variable?Hello everyone, [EDIT: I just realize that's not how people have been posting code - please bear wi…
Labels in by group variable using estpost tabstatHi everyone, I am trying to export a descriptive statistics table using estpost tabstat and esttab …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a gamma distribution function to estimate likelihoods
Post a Comment