Hello togehter,
I am using Stata 14.0, and I would really like to find the count of occurrences of a list of about 25 words in my dataset. Specifically one String variable.
I am quite unfamiliar with using Stata, so excuse if this is a really dumb question.
I tried using the egenmore package and tried using those commands:
noccur(strvar) , string(substr) creates a variable containing the number > of occurrences of the string substr in string variable strvar. Note > that occurrences must be disjoint (non-overlapping): thus there are two > occurrences of "aa" within "aaaaa". (Stata 7 required.) > > nss(strvar) , find(substr) [ insensitive ] returns the number of > occurrences of substr within the string variable strvar. insensitive > makes counting case-insensitive. (Stata 6 required.) However once I type in everything and would like to run it, it does not work and gives me the notice "command noccur is unrecognized" even though I installed the package. I believe this is due to my Stata version.
Is there any type of package or other trick that allows me to also include this type of command?
Just to picture, I have a video transcript with lots of motives in text format. Now I would like to find out how often for example the word "logo" is being used in my variable "video".
I am very happy for any help.
I am using Stata 14.0, and I would really like to find the count of occurrences of a list of about 25 words in my dataset. Specifically one String variable.
I am quite unfamiliar with using Stata, so excuse if this is a really dumb question.
I tried using the egenmore package and tried using those commands:
noccur(strvar) , string(substr) creates a variable containing the number > of occurrences of the string substr in string variable strvar. Note > that occurrences must be disjoint (non-overlapping): thus there are two > occurrences of "aa" within "aaaaa". (Stata 7 required.) > > nss(strvar) , find(substr) [ insensitive ] returns the number of > occurrences of substr within the string variable strvar. insensitive > makes counting case-insensitive. (Stata 6 required.) However once I type in everything and would like to run it, it does not work and gives me the notice "command noccur is unrecognized" even though I installed the package. I believe this is due to my Stata version.
Is there any type of package or other trick that allows me to also include this type of command?
Just to picture, I have a video transcript with lots of motives in text format. Now I would like to find out how often for example the word "logo" is being used in my variable "video".
I am very happy for any help.
Comment