+ Reply to Thread
Results 1 to 14 of 14

Thread: MASS in R commander

  1. #1

    MASS in R commander



    Hey guys having a little technical difficulty in R Commander.

    The problem is I am unable to select "Basic Diagnostic Plots" after I import a dataset .csv file. When I click on the "Models" tab then go to "Graphs" it shows all the options but does not allow me to select any of them (basic diagnostic plots, residual-quantile comparison plots etc.)

    I have been told that this is because I do not have MASS loaded, but I am unsure how to load MASS if it is indeed my problem. The MASS package is not listed when I go to "Tools"-"load package(s)."

    Any thoughts? Thank you.

  2. #2
    Super Moderator
    Points: 15,030, Level: 79
    Level completed: 36%, Points required for next Level: 320
    bugman's Avatar
    Posts
    1,535
    Thanks
    101
    Thanked 154 Times in 120 Posts

    Re: MASS in R commander

    either go to install packages and select MASS or use:

    install.packages("MASS")

    if this doesn't fix the rcmdr issue, repost.
    The earth is round: P<0.05

  3. #3
    Points: 278, Level: 5
    Level completed: 56%, Points required for next Level: 22
    Mr Nice Guy's Avatar
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: MASS in R commander

    Thanks bugman. I gave the script a code and it did not appear to work but it says MASS is already loaded from what I gather? Here is the output:


    > install.packages("MASS")
    Installing package(s) into 'C:/Users/Mr. Nice Guy/Documents/R/win-library/2.15'
    (as 'lib' is unspecified)
    Warning: package 'MASS' is in use and will not be installed
    --- Please select a CRAN mirror for use in this session ---

  4. #4
    RotParaTon
    Points: 47,153, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,193
    Thanks
    212
    Thanked 1,641 Times in 1,402 Posts

    Re: MASS in R commander

    Have you loaded MASS?

    Code: 
    library(MASS)
    I don't use R commander so I don't know if that's the problem or not...
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  5. #5
    Points: 278, Level: 5
    Level completed: 56%, Points required for next Level: 22
    Mr Nice Guy's Avatar
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: MASS in R commander

    When I go to the "Load Packages" menu, MASS is not an option.

  6. #6
    RotParaTon
    Points: 47,153, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,193
    Thanks
    212
    Thanked 1,641 Times in 1,402 Posts

    Re: MASS in R commander

    Ok try this. Forget R Commander. Just load up R and see if calling library(MASS) works.
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  7. #7
    Points: 278, Level: 5
    Level completed: 56%, Points required for next Level: 22
    Mr Nice Guy's Avatar
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: MASS in R commander

    Well I was trying to install and load MASS from R commander. I found that I can load and install it in R. When I load MASS, no output is created so I am not sure if it worked or not. When I try to install MASS the out put is:


    Warning: package ‘MASS’ is in use and will not be installed


    I did input the command library(MASS) and it appeared to have no effect.

    I am hoping to get a hold of my professor but communication with him is sketchy at best. Thanks everyone for the help i'll keep you guys updated if I can found out a way to make it work!

  8. #8
    Banned
    Points: 3,678, Level: 38
    Level completed: 19%, Points required for next Level: 122
    GretaGarbo's Avatar
    Posts
    429
    Thanks
    146
    Thanked 139 Times in 122 Posts

    Re: MASS in R commander

    I did input the command library(MASS) and it appeared to have no effect.

    So no protest from R. I think that means that the command worked.

    Now run the rest of the commands (and maybe it works) .

  9. #9
    RotParaTon
    Points: 47,153, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,193
    Thanks
    212
    Thanked 1,641 Times in 1,402 Posts

    Re: MASS in R commander

    Yes if you run library(MASS) and you don't see anything that means that you were able to successfully load the package. It doesn't make sense to try to install MASS right after you loaded it which is why you were getting the error.

    I can't help with R commander problems because personally I don't like it and much prefer to just use the command line. But Greta I don't think they can run the rest of the commands because they don't appear to know what those commands are since they're trying to do everything with R Commander (which is a GUI add on)
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  10. #10
    Super Moderator
    Points: 15,030, Level: 79
    Level completed: 36%, Points required for next Level: 320
    bugman's Avatar
    Posts
    1,535
    Thanks
    101
    Thanked 154 Times in 120 Posts

    Re: MASS in R commander

    I think its that your data are not loading properly. Try installing some of the plugins aswell and make sure your data set is imported properly then try and run an ANOVA, once you have done that the quantile quantile plots option wont be greyed out anymore and you will be able to select it. I dont think MASS is your problem.
    The earth is round: P<0.05

  11. #11
    Points: 278, Level: 5
    Level completed: 56%, Points required for next Level: 22
    Mr Nice Guy's Avatar
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: MASS in R commander

    Got it figured out.

    My problem was I simply did not load the single factor ANOVA model first. It must be done before you check diagnostics.

    Lol

  12. #12
    Points: 4, Level: 1
    Level completed: 7%, Points required for next Level: 46

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MASS in R commander

    Hi! I just have the same problem that you posted here http://www.talkstats.com/showthread....in-R-commander

    Can you tell me how you resolved this problem?

    I will be grateful with you

    Lavinia

    I have been told that this is because I do not have MASS loaded, but I am unsure how to load MASS if it is indeed my problem. The MASS package is not listed when I go to "Tools"-"load package(s)."

    Any thoughts? Thank you.[/QUOTE]

  13. #13
    Points: 4, Level: 1
    Level completed: 7%, Points required for next Level: 46

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MASS in R commander

    Hi! I just have the same problem that you posted here http://www.talkstats.com/showthread....in-R-commander

    Can you tell me how you resolved this problem?

    I will be grateful with you

    Lavinia
    just.lavy@gmail.com

  14. #14
    RotParaTon
    Points: 47,153, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,193
    Thanks
    212
    Thanked 1,641 Times in 1,402 Posts

    Re: MASS in R commander


    They resolved the problem in the post above yours. Does that not work for you? Or is your problem different from theirs?
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

+ Reply to 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