Hi,
consider the following example data:
And than create the desired variable using a regex match approach but I haven't really figured out how to pull that off yet and would appreciate any help.
consider the following example data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str1 Company str20 ceo1 str23 ceo2 str25 ceo3 strL(ceo1speech ceo2speech ceo3speech) str14 ceocorrect "A" "WATSON" "" "" "bla bla bla bla" "" "" "WATSON" "B" "WIRTH" "" "" "bla bla bla" "" "" "WIRTH" "B" "WIRTH" "" "" "bla bla bla bla bla" "" "" "WIRTH" "C" "DOWD" "GREENBERG" "" "" "bla bla bla" "" "GREENBERG" "C" "GREENBERG" "KEOGH" "DOWD" "bla bla bla" "" "" "GREENBERG" "C" "KEOGH" "DOWD" "GREENBERG" "" "" "bla bla bla" "GREENBERG" "C" "GREENBERG" "" "" "bla bla bla" "" "" "GREENBERG" "C" "KEOGH" "DOWD" "GREENBERG" "" "" "bla bla bla" "GREENBERG" "C" "DOWD" "GREENBERG" "" "" "bla bla bla" "" "GREENBERG" end
- ceo1-ceo3: These are the names of managers who attended the conference call, and "CEO" is assigned to their job description at the beginning of the transcript. Not all of them are actually CEOs of the respective firm mentioned in the Company variable.
- ceo1speech, ceo2speech, ceo3speech: These represent the text spoken by the corresponding CEOs during the conference call. For example, ceo1speech contains the text spoken by ceo1, and so on.
- ceocorrect: This variable includes the CEO's name of the firm, as indicated by the variable Company (the firm hosting the conference call).
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str1 Company str20 ceo1 str23 ceo2 str25 ceo3 strL(ceo1speech ceo2speech ceo3speech) str14 ceocorrect "A" "ceo1: WATSON" "" "" "ceo1: bla bla bla bla" "" "" "WATSON" end
Comment