* Example generated by -dataex-. For more info, type help dataex
clear
input str1 var1 float group
"a" 1
"b" 1
"c" 1
"d" 1
"e" 1
"a" 2
"b" 2
"c" 2
"e" 2
"a" 3
"b" 3
"c" 3
"d" 3
"e" 3
"a" 4
"c" 4
"d" 4
"e" 4
end
[/CODE]
------------------ copy up to and including the previous line ------------------
How to Insert a blank line after each group according to the group?
insob 1, after(_N) // An empty line can be inserted at the end, but it cannot be grouped
the data that i wanted are as follows:
"a" 1
"b" 1
"c" 1
"d" 1
"e" 1
"a" 2
"b" 2
"c" 2
"e" 2
"a" 3
"b" 3
"c" 3
"d" 3
"e" 3
"a" 4
"c" 4
"d" 4
"e" 4
Related Posts with How to insert a blank line by group
Regress for each company by using "foreach" or "forvalues" commandHi there, My panel data set includes 389 companies and 51 quarter years. I am trying to regress my …
Stata 17 - how to get forest plots with risk ratio and not log risk ratioHi I am new to Stata 17 meta analysis forest plots. I am analysing binary data for treatment(Yes/No)…
Calculate shares by variable and a conditionHi Stata Users, I have household data and would like to calculate age specific enrollment rates i.e…
areg in cross-sectional data and multicollinearity Hello, I have a cross sectional data consisting of 632 banks in 67 countries. In my dataset I have …
reshaping long-long (?) data (all variables and observations in the single column)Dear all, I have data from the IEA that looks like this: Code: * Example generated by -dataex-. To…
Subscribe to:
Post Comments (Atom)
0 Response to How to insert a blank line by group
Post a Comment