Linear regression model with (categorical) predictor variablesNeural Network Timeseries Modeling with...

What is the purpose of easy combat scenarios that don't need resource expenditure?

Graph with overlapping labels

Can a Spectator be a bodyguard? So, can its treasure/item to guard be a person/person's item?

Finding a logistic regression model which can achieve zero error on a training set training data for a binary classification problem with two features

What is the difference between rolling more dice versus fewer dice?

How do you catch Smeargle in Pokemon Go?

How much mayhem could I cause as a sentient fish?

Move fast ...... Or you will lose

How to deal with an incendiary email that was recalled

Words and Words with "ver-" Prefix

Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?

Numbers with a minus sign in a matrix not aligned with the numbers wihtout minus sign

What to look for when criticizing poetry?

Do authors have to be politically correct in article-writing?

Create a Price Tag Icon with Rounded Corners

Increment each digit in a number to form a new number

False written accusations not made public - is there law to cover this?

Clues on how to solve these types of problems within 2-3 minutes for competitive exams

Why is it that Bernie Sanders is always called a "socialist"?

What would be the rarity of this magic item(s)?

How do you funnel food off a cutting board?

Why avoid shared user accounts?

Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?

String variable with multiple values



Linear regression model with (categorical) predictor variables


Neural Network Timeseries Modeling with Predictor VariablesTime Series Machine Learning Feature Selection ProblemWhy after adding categorical data the Linear Regression fails?Handling categorical variables in linear regression and random forestcustomer segmentation with categorical variablesLinear Model for Linear RegressionRegression model for continuous dependent variable and count independent variablesBuild machine learning model with all binary predictor variablesIntuitive Explanation of R-squaredGet insights from Random forest::Variable Importance analysis













1












$begingroup$


I used LM model with (categorical) predictor variables on my data in r like this (I have count variable as dependent/target variable):



# Fit linear model to total viewing:
fit <- lm(
total_viewing_minutes ~ panelist + sex + internet + education,
data = cln
)


If I understood correctly in r the first category is always the reference one so has by definition a coefficient of 0.



So by looking at the model result, is 68.3 minutes (intercept) average time viewing of



Panelist0 + sex1 + internet1 + education1  


and by taking into account the term Panelist1

the 68.4 + 17.6 is avg time viewing of



 Panelist1 + sex1 + internet1 + education1  


is that correct interpretation?



enter image description here










share|improve this question







New contributor




Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    1












    $begingroup$


    I used LM model with (categorical) predictor variables on my data in r like this (I have count variable as dependent/target variable):



    # Fit linear model to total viewing:
    fit <- lm(
    total_viewing_minutes ~ panelist + sex + internet + education,
    data = cln
    )


    If I understood correctly in r the first category is always the reference one so has by definition a coefficient of 0.



    So by looking at the model result, is 68.3 minutes (intercept) average time viewing of



    Panelist0 + sex1 + internet1 + education1  


    and by taking into account the term Panelist1

    the 68.4 + 17.6 is avg time viewing of



     Panelist1 + sex1 + internet1 + education1  


    is that correct interpretation?



    enter image description here










    share|improve this question







    New contributor




    Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      1












      1








      1





      $begingroup$


      I used LM model with (categorical) predictor variables on my data in r like this (I have count variable as dependent/target variable):



      # Fit linear model to total viewing:
      fit <- lm(
      total_viewing_minutes ~ panelist + sex + internet + education,
      data = cln
      )


      If I understood correctly in r the first category is always the reference one so has by definition a coefficient of 0.



      So by looking at the model result, is 68.3 minutes (intercept) average time viewing of



      Panelist0 + sex1 + internet1 + education1  


      and by taking into account the term Panelist1

      the 68.4 + 17.6 is avg time viewing of



       Panelist1 + sex1 + internet1 + education1  


      is that correct interpretation?



      enter image description here










      share|improve this question







      New contributor




      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I used LM model with (categorical) predictor variables on my data in r like this (I have count variable as dependent/target variable):



      # Fit linear model to total viewing:
      fit <- lm(
      total_viewing_minutes ~ panelist + sex + internet + education,
      data = cln
      )


      If I understood correctly in r the first category is always the reference one so has by definition a coefficient of 0.



      So by looking at the model result, is 68.3 minutes (intercept) average time viewing of



      Panelist0 + sex1 + internet1 + education1  


      and by taking into account the term Panelist1

      the 68.4 + 17.6 is avg time viewing of



       Panelist1 + sex1 + internet1 + education1  


      is that correct interpretation?



      enter image description here







      machine-learning r linear-regression categorical-data






      share|improve this question







      New contributor




      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Feb 22 at 18:16









      AnnAnn

      61




      61




      New contributor




      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          Your interpretation is correct. I would also add that if Panelist1 increases by 1 unit and the other predictors are held constant, then the average increase in the response variable is 17.557 minutes.





          share








          New contributor




          N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "557"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Ann is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46054%2flinear-regression-model-with-categorical-predictor-variables%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $begingroup$

            Your interpretation is correct. I would also add that if Panelist1 increases by 1 unit and the other predictors are held constant, then the average increase in the response variable is 17.557 minutes.





            share








            New contributor




            N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            $endgroup$


















              0












              $begingroup$

              Your interpretation is correct. I would also add that if Panelist1 increases by 1 unit and the other predictors are held constant, then the average increase in the response variable is 17.557 minutes.





              share








              New contributor




              N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






              $endgroup$
















                0












                0








                0





                $begingroup$

                Your interpretation is correct. I would also add that if Panelist1 increases by 1 unit and the other predictors are held constant, then the average increase in the response variable is 17.557 minutes.





                share








                New contributor




                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                $endgroup$



                Your interpretation is correct. I would also add that if Panelist1 increases by 1 unit and the other predictors are held constant, then the average increase in the response variable is 17.557 minutes.






                share








                New contributor




                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 5 mins ago









                N. AgarwalN. Agarwal

                11




                11




                New contributor




                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                N. Agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                    Ann is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Ann is a new contributor. Be nice, and check out our Code of Conduct.













                    Ann is a new contributor. Be nice, and check out our Code of Conduct.












                    Ann is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46054%2flinear-regression-model-with-categorical-predictor-variables%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Fairchild Swearingen Metro Inhaltsverzeichnis Geschichte | Innenausstattung | Nutzung | Zwischenfälle...

                    Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...

                    Marineschifffahrtleitung Inhaltsverzeichnis Geschichte | Heutige Organisation der NATO | Nationale und...