Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Logistic Regression in Power bi using R

I am trying to get the summary of my logistic regression output to see the P-value of the desicion variable. I was thinking that if i can get this in Power BI, then I can use filters to see the values for different perspectives.

 

However, when I run the code : output <- glm(Var ~. ....), it throws an error.

 

My dataset looks s follows:

 

ID   Q1  Q2  Q3  Q4 ... ( 8 QUESTIONS)   Status

1      1     1    0    0                                   1

2      1     0    1    0                                   1

3      0     0    1    1                                   1

 

 

Q1 -8 are question Id's and 1 means Employee answered agree, 0 means disagree. Status 1 means Active, 0 means not active.

 

Status is my dependent varaible and Q1-8 are my independent variables.  The following is what I get:

 

 

   I have R installed on my machine.

 

Any help? Thanks!

 

 

 

1 Reply

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi Anonymous,

     

    It looks like there existing some syntax error in R script. Please run your R code in R studio to test if it can generate expected visual.

     

    Regards,

    Yuliana Gu