12. Regression analysis in Stata with continuous, numeric and categorical independent variables

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 28

  • @farhak2289
    @farhak2289 3 роки тому +2

    Hi, Is any way we can get the coefficients of both domestic and foreign variable if we consider it as dummy

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  3 роки тому +1

      Yes you get both coefficients by running two regressions in first make domestic as base category and in the second make foreign as the base category

  • @nightnight9462
    @nightnight9462 3 роки тому +1

    Very informative video. Keep on doing the good work!

  • @rwaewae
    @rwaewae 3 роки тому +1

    Hi, Could you pls help me learning bayer & hanck cointegration in stata or eviews. thanx

  • @animeshchowdhury448
    @animeshchowdhury448 3 роки тому +1

    Sir,
    I am currently working on a meta analysis. But I am not able to produce association studies of allele contrast (A vs a). Except that all are done but can not understand how to calculate A vs a frequency. If you help me out it will help me a lot.
    Thanks

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  3 роки тому +2

      Thanks for your message can you explain me the task a bit in more detail then it will be easy for me to guide you.
      Thanks

    • @animeshchowdhury448
      @animeshchowdhury448 3 роки тому +1

      @@learndataanalyticswithus5437 sir, I am working on 14 bp insertion deletion and calculation of allele contrast ration is mandatory for this thing.
      Allele contrast : Ins vs Del , Ins/Ins vs Del/Del and so on. When I replicate on article on 14bp ins del on SLE, then I have learnt that if I put command: metan IICase DDCase IIControl DDControl ( II - ins/ins, DD - del/del) then STATA shows the result of ins/ins vs del/del result of allele contrast. But can't figure out how am I calculate only Ins vs Del contrast ratio. Where comparison done for Dominant allele vs Recessive allele.
      My email id is: joy.ani005@gmail.com
      If you kindly email me then i can provide you the article which i want to replicate. Because I have learnt all the functions till now on by own for meta analysis by STATA.
      Sincerely yours.

  • @jinruizhang
    @jinruizhang 3 роки тому +1

    hello Khan, nice video! Question, if I want to regress something and see the influence of each category, but I have a lot of categories (for example I am regressing happiness and income, see if there are country variations, so country as a categorical variable), would it be the same?

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  3 роки тому +2

      Yes that's right you just need to add country as a categorical variable in your regression and the you will also able to see how much each country is impacting the happiness.

    • @jinruizhang
      @jinruizhang 3 роки тому +1

      @@learndataanalyticswithus5437thanks Khan for the quick reply! However, my problem is that Stata takes my categorical variable as a continuous variable, and when I put ib1. before my categorical variable is gives me error 198 just like the one you had.

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  3 роки тому +2

      How many categories do you have in country variable?

    • @jinruizhang
      @jinruizhang 3 роки тому +1

      @@learndataanalyticswithus5437 I have 35 categories

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  3 роки тому +2

      I think the error could be because of two reasons
      1. May be you have very less data.
      2. Do you have any country code 1. Because when you are writing ib1 there must be a country with code 1

  • @ko9s422
    @ko9s422 2 роки тому +1

    All the results for foreign were exactly the same whether you used ib or not. I don't see that this made any difference whatsoever. Why are the results wrong if you don't use ib but right if you do use ib?

    • @learndataanalyticswithus5437
      @learndataanalyticswithus5437  2 роки тому +1

      the ib is useful to identify which variable is a categorical variable especially when categories are more than 2 and it helps the analyser to see the impact of each category on dependent variable.

  • @user-ex4hf9mw4t
    @user-ex4hf9mw4t 3 роки тому +1

    Thank You So Much.

  • @populationscience810
    @populationscience810 2 роки тому +1

    First u should show rhe data
    Then it will automatically help in to understand more