+ Reply to Thread
Results 1 to 3 of 3

Thread: Importance of vars in linear regression (R)

  1. #1
    Points: 1,539, Level: 22
    Level completed: 39%, Points required for next Level: 61

    Thanked 0 Times in 0 Posts

    Importance of vars in linear regression (R)

    I have a question that is and R question and a statistical question:
    I am analysing sales of a retailer. These sales are related to some vars: var1, var2, var3.., varN
    Most of the vars are continuos.
    I want to analyze the relationship between sales and the vars. I have made a linear regression with R:

    rg<-lm(sales ~ var1 + var2 + var3 + var4, data=sales_2017)
    Now I want to know which is the most important variable in sales, and to know the percent of importance of each var. I am doing this (caret package):

    varImp(rg, scale = FALSE)
    rsimp <- varImp(rg, scale = FALSE)
    Is this a good method to obtain variables importance??, is good way in R?
    Thanks in advance. Any advice will be greatly apreciated.


  2. #2
    Omega Contributor
    Points: 38,253, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Not Ames, IA
    Thanked 1,185 Times in 1,146 Posts

    Re: Importance of vars in linear regression (R)

    What does the scale =false option mean here?
    Stop cowardice, ban guns!

  3. #3
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Thanked 915 Times in 874 Posts

    Re: Importance of vars in linear regression (R)

    There is no easy/agreed on way to determine the relative impact of a variable in regression. I spent years looking in the literature and asking people, including here, to get at this and my conclusion is that regression was really not designed to answer this question surprising as that is to me.

    In logistic regression the strength of the wald statistic can be used to rate relative impact. I forgot what I used for linear regression, but I will look it up. But again there is no agreement of what the best way to do this - and most discussions of regression do not address it including books on regression.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

+ Reply to Thread


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Advertise on Talk Stats