Working With String Variables in Stata

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 14

  • @varunmiglani110
    @varunmiglani110 Рік тому +1

    very useful commands for data management

  • @naimatkadha817
    @naimatkadha817 11 місяців тому

    Informative as usual. I have a suggestion to please upload the do file in description of the video.

    • @thedatahall
      @thedatahall  11 місяців тому

      Thnaks for the suggestion. I have added a link to the files in the description of this video. We will do it for other videos as well.

    • @naimatkadha817
      @naimatkadha817 11 місяців тому

      Many thaks@@thedatahall

  • @peepepepe3616
    @peepepepe3616 Місяць тому

    Hello I have a question. I have one string variable which have 4 characters the first two are the houres a the two second are the minutes How can I Split that variable into to variable one for the houres and other for the minutes?

  • @milimomashini9432
    @milimomashini9432 Рік тому +1

    very useful sir thanks for video

  • @rassoronmore8931
    @rassoronmore8931 9 місяців тому

    This is a very useful video. I want to ask how do we match multiple words? Like if I want to look for any of the multiple words in the variable data?

    • @thedatahall
      @thedatahall  9 місяців тому +1

      Please look into the inlist function, i do have a video on that, if it doesn't work the n send me an email at info@thedatahall.com along with example data.

  • @varunmiglani110
    @varunmiglani110 Рік тому

    i have data in some cell it is: "Received" in another cell: Continuing without support now i want for both these observations to get a code of 1 in newly generated variable. how to put two criteria in strmatch

  • @tingting1818
    @tingting1818 Рік тому

    thank you so much

  • @jesuscardenas2551
    @jesuscardenas2551 Рік тому

    Is there any way to identify blank spaces in string variables? I do not need to remove it, just to identify it

    • @thedatahall
      @thedatahall  Рік тому

      You can use following command
      gen var=1 if regexm(variable_name," ")==1