Announcement

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

  • Issues when running logistic regression analysis

    Dear everyone,

    I am currently doing a study on pancreatic cancer, and one of the things I'm looking at is the likelihood of reaching resection based on the type of chemotherapy administered. Based on the crosstab analysis below, you can see that there is a significant difference, but this is something I also have to show in a univariate regression model, as well a multivariate analysis with other variables.

    Stata would not perform the regression analysis, as it stated that "1 perfectly predicts faliure/outcome" (see the second image).
    I eventually realized what this means: As the crosstab anaylisis shows, none of the patients receiving chemotherapy regimens 2-4 ended up with a resection. Appearantly, this creates an issue when running a regression analysis. Does anyone know how to circumvent this problem?

    Thanks in advance
    Click image for larger version

Name:	Chi2.PNG
Views:	1
Size:	21.0 KB
ID:	1754536 Click image for larger version

Name:	Univariate analysis.PNG
Views:	1
Size:	22.5 KB
ID:	1754537

  • #2
    I think the problem is that you've coded your outcome 1 and 2, so all values are treated as positive (not zero). You should feed logit regression outcomes coded 0 and 1.

    Comment


    • #3
      Thank you for replying.
      Even when I change the coding to 0 and 1, I run into this problem.
      Click image for larger version

Name:	Chi2 v2.PNG
Views:	1
Size:	15.4 KB
ID:	1754542

      Comment


      • #4
        image two:
        Click image for larger version

Name:	Univariate analysis v2.PNG
Views:	1
Size:	8.0 KB
ID:	1754544

        Comment


        • #5
          https://stats.oarc.ucla.edu/other/mu...ith-the-issue/

          Comment


          • #6
            Thank you! This explains it.

            I tried using firth logistic regression, the Bayesian method and the Exact method, and the Exact method fits the dataset best.

            When doing a the analysis with more than one independent variable, an error occurs because I exceeded the memory limit of 10.0M bytes. Is this a limitation of the computer that I am using. And, is there a way of increasing the memory limit?

            Thanks

            Comment


            • #7
              I am surprised to hear that. As I understand it you have 92 observations and even with many variables that's still a tiny dataset.

              Comment

              Working...
              X