Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Percent change using logistic regression

    I wan to calculate the percent change for proportion of patients using certain drug, and compare it between 2 years 2010 and 2019 and adjust for some predictors using logistic regression.

    I created a variable called post and take value 0=2010, 1=2019
    post | Freq. Percent Cum.
    ------------+-----------------------------------
    0 | 1,746 53.41 53.41
    1 | 1,523 46.59 100.00
    ------------+-----------------------------------
    Total | 3,269 100.00

    I have my drug variable as t_8
    ------------+-----------------------------------
    0 | 11,511 68.17 68.17
    1 | 5,375 31.83 100.00
    ------------+-----------------------------------
    Total | 16,886 100.00


    I initially used logit t_8 post to get coefficient and look for significance, but is there a way to calculate percent change between these 2 years and adjust for confounding variables ?

Working...
X