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
Inverse hyperbolic sinc transformationHi, I have been suggested to use hyperbolic sine transformation instead of log(0+1) I have tried '…
Extract date from Excel as input in global macroHi, I would like to extract a date from Excel in MM/DD/YYYY format which is located in cell B2, con…
First step regressionGood morning everyone, I have been asked to try to visualize a first step regression. Anyway, in or…
Test endogenity of instrumentsGoodmorning everyone, I am trying to use the command esttab in the following way: ivreg2 l_vkt_IH …
Newey ErrorI am getting the following error when I run the newey command. My dates start from 22nd Jan all the …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a gamma distribution function to estimate likelihoods
Post a Comment