Hi,
I would like to ask a question about collapse command.
I tried to collapse all data with that function
collapse holder_perceo coname gend, by(exec_fullname)
holder_perceo: Dummy variable
coname: Company names
gend: Gender Dummy variable
by(exec_fullname): Executive names
It gives type mismatch error.
When I remove coname, it works but I need the company names too.
Thank you in advance.
Related Posts with String on collapse command
How to calculate effect size for Kruskal-Wallis test?Dear all, I am struggling to estimate the effect size for the Kruskal-Wallis test in Stata. I will b…
Counting unique no missing valuesHi! My dataset is about trust in government and media. It contains two variables: 1. city- the code …
Human opportunity indexHi, I am trying to apply below mentioned HOI syntax on education data to check inequality of opportu…
Panel data: Calculate change within each subgroup from the first to the last observation (over time)Hi, I work on unbalanced panel data (26 states ("cant"), time period around 1970-2017) on wealth sh…
Matching sample firms on benchmark firm (large sample)Dear Statalisters, I try to match my event firms (#21067) on a control firm on size and book-to-mar…
Subscribe to:
Post Comments (Atom)
0 Response to String on collapse command
Post a Comment