* 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
generating change variables in panel-structureDear all, I would like check whether I can overwrite the missing deprivation variable (dep) with the…
ERM model for Endogenous treatment effect with nointeract optionI am trying estimate treatment effect models using ERM command in Stata 15. However, it has been sho…
optimize_init_technique(S, "nr")Hi, I have a methodological question about how optimize works with the Newton-Raphson algorithm. A…
Getting started with STATAHey there, I need to write an essay for which I need Stata. To be honest I never had any experience…
Ali UbaidI am trying Heckman two-step analysis for remittances and agriculture investment based on survey dat…
Subscribe to:
Post Comments (Atom)
0 Response to How to insert a blank line by group
Post a Comment