Hello,
I wish to loop n times, say:
forvalues i = 1(1)n{
and n is defined by the last number of id:
egen id = group(firm)
May I kindly ask how to write this code please?
Related Posts with looping n times, and n is determined by another equation
Limitation of arguments in mataCheers together, currently, I am trying to find the internal rate of return or cost of equity for c…
How to import several excelsDear Statalist, I need to create a database using several (hundreds) of excels like the one I show …
wildcard in string variableI'm trying to link different business locations to appropriate zip codes using a do-file. I have bus…
estimating sample size for cohort studiesI am trying to compute the sample size of a cohort study, pregnant women beyond 20 weeks of gestatio…
How to organise my data, Im a beginner!Hi I would like to know what commands to use to organise my data, I currently have a dataset with ov…
Subscribe to:
Post Comments (Atom)
0 Response to looping n times, and n is determined by another equation
Post a Comment