Hi I have a panel dataset with t=35 and n=300. For a project I need to run a regression of the following form.
Array
Where Y is the dependent variable (denoting total production) and T is the independent variable (denoting temperature deviations during a period z within a longer time period t (i.e. 𝑧∈𝑡)) for a production unit u within a larger unit i (i.e. 𝑢∈𝑖)
My problem is while I have run fixed effects regressions in the past, I have not dealt with an independent variable that is an integral.
Reading around a bit I find that integ can be used. However, I am not sure if it would help me to calculate the term above.
Any suggestions would be helpful
Related Posts with Calculating integral for an independent variable
How to extract numeric part of a string var in STATADear everyone, I would like to know if someone knows a STATA code that I can use to extract numeric…
Comparing 2 mean changes per year for statistical difference?Dear Stata users, I have calculated mean changes in eGFR in 2 groups using mixed model. Group 1 me…
Cumulative sums with duplicatesI am trying to create a variable based on employment data taken from a survey done over several year…
Multi-Level Modelling DecisionsDear fellow Stata users, I have some questions about the use of multi-level models. I am working o…
How to writing a code similar as the following code but by region?levelsof year, local(years) egen flag = tag(id_job year) gen stateratio = . foreach y of local years…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating integral for an independent variable
Post a Comment