Hi everyone,
Suppose a variable y, with 100 obs, ranked by id (1 to 100). And among these obs, only one have a value of 1, and others were 0.
How can I get the row number of the cell have a value of 1? Or how can I impute all of cells before the cell with value of 1?
Thanks
Best regards
Chang
Related Posts with Get the row number of a cell
Generate mean within group for those whose value is lower onlyHi everybody, I have data where each row represents one individual in a given year, working in a giv…
Keeping the last 4 digits of a long variableHi everyone, I have a long variable for source date in this dataset I am working with. This long v…
How to create a unique indiviudal id in household data?Dear all, I'm using a household data in which an individual is uniquely identified by province_dist…
How to create a graph from mixed effect linear coefficientDear Statalisters, I am using a mixed-effect linear model and I want to plot the coefficient of the…
how to fix heteroskedasticity, autocorrelation in stata 14.2I am working for my thesis with panel data where N> T (N~700, T=4 as the attached file ). I carri…
Subscribe to:
Post Comments (Atom)
0 Response to Get the row number of a cell
Post a Comment