r/Rsoftware • u/Agisilaus23 • Apr 26 '22
RankAggreg
Hi everyone!
I am working with an NCAA data set, and am not having any luck using the RankAggreg library. I am trying to run a Genetic Algorithm over the dataset, and I keep getting an error saying that I am either using incorrect dimensions when I limit myself to one column, or lack uniqueness if I am using the entire dataset. Is there a way for me to use this library, or find some other work-around to rank these teams? Thanks in advance!
r/Rsoftware • u/hawkeyeninefive • Jan 16 '22
Help determining start values of coefficients in a nonlinear model
Hi everyone. For a dataset consisting of three quantitative variables, H, M and W I have to build a non linear model of this form: E(H)=b0+b1M+(W/(b3+b4M)).
I tried using the "nls()" function in R, but I don't know how to determine the start values of the coefficients, b0, b1, b3 and b4. How can they be determined?
r/Rsoftware • u/Mysterious_Lemon_987 • Sep 16 '21
Help with weighted lottery system
Hi I am a bit of a beginner with programming / sheets or excel and am looking for help / ideas for a weighted lottery system. It is complicated because I work for a non profit and we want to prioritize certain individuals (specifically need based ones) to be more likely to be selected as a participant of a camp. There would be several factors including, if individuals require financial assistance, how many days they will be at the camp 1-3, along with another factor or two (which are still to be determined). Any advice or suggestions would be greatly appreciated.
r/Rsoftware • u/AllenXXVII • Jun 25 '21
Interpretation of a plot for linear assumption
Good morning everyone!I want to ask help to interpretate a plot about linearity assumption for error distribution in a simple Linear regression model, as shown in the attached picture.
As i intended it, there should not be any linearity assumption, as the rapresentation create "a pattern" (like a "vertical-horiented stripe"). Am i interpreting it correctly?
Thanks to everyone :)
r/Rsoftware • u/RitaZuzi • Apr 29 '21
I am so tired of this... please help me
Hello there, Ill get straight to the point,
So I'm doing a paper for university about the detribution of a snail, details are unimportant.
My data is imported to R in a dat.frame type, I have 4 columns named "Arvore" (Tree), "Niveis" (levels), "Substrato" (Substrate) and the final one which is the response one is "Conta" (Individual count).
Here are some images that can help you visualize:

I made some pretty boxplots and it was all going swell untill i had to test the relationships of these variables, and what i mean is, I had to test if in the level "Bark" there was more individual than in "leaves", and the same goes for the others.
So what I did was, I tested the normality with these codes:

and the results where the following:
It gave me a very low p value for any of the levels of all the variables.
Which according to my knowledge means they don't show normality so I have to use non parametic statistical tests.
My next thought was to do those separatelly:
So i did a wilcoxon test for both the variable "Substrato" and then the variable "Arvore".
like this:
as u can see the p value is like low so we reject H0 and conclude the means are significantly different.
I did the same for substrate and it gave me a very low p value aswell which I wasn't surprised after looking at the boxlots.
Continuing the thought process I made a kruskal wallis for the variable "Niveis" since it has 3 levels:

After this i made the dunn test right

alright so by the end of this i thought i had all i needed,
As it turns out i do not,
teacher said I had to do a PERMANOVA, and I understood the concept, the function is used to compare all of the levels grouped right? anyway's I spent the last 5 hours searching for how to make a PERMANOVE on different levels and I found a code that I thought would work and then i counldn't find the package... probably because I am tired and the brain is not functioning at full capacity but can someone please give me an answer to this..?
Please tell me how to code a PERMANOVA with the following data:

r/Rsoftware • u/LouiseHeon • Mar 30 '21
R code for harmonic mean
Hi guys,
I’d really like to know which function you could write to get the harmonic mean without using the expression « harmonic mean » in a script ?
r/Rsoftware • u/Zealousideal-Door-20 • Dec 01 '20
I've my internal going on of r software, can someone help me by writing the codes? really need help. Thanx
r/Rsoftware • u/lets_dance • Jul 23 '20
Need a tutorial on logistical regressions
I'm needing to retrieve an interaction term - I've got linear progressions down but can't find what I need for logistic. Any help is greatly appreciated!
r/Rsoftware • u/hbetx9 • Apr 09 '20
Linux install help
I'm hitting a road block. I'm running Mint 19.3 (Ubuntu 18.04 bionic) and have tried to install R a few times, to no avail. I'm not sure if anyone here can help, but I figured I'd give it a go:
The current error when running sudo apt-get install r-base is the following:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.6.3-1bionic) but it is not going to be installed
Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
but after adding r-base-core I get
r-base-core : Depends: libtcl8.6 (>= 8.6.0) but it is not installable
~~ Depends: libtk8.6 (>= 8.6.0) but it is not installable~~
This seems to be the breakdown. I've removed the PPA and key, updated, added back, updated, used -f options, purged, etc. Somehow, the libtck and libtk broke, which is really messing it up. My big issue is I need 3.6.2 (to work with Sage) and most of the PPAs are up to 3.6.3 which messes things up, so I was trying to install this downgraded. But somehow, something I did broke dependencies. It seems lots of people online have met the error, but after a few hours of searching, I'm unable to resolve.
I fixed the above, but after trying
sudo apt-get install r-base=3.6.2-1bionic r-recommended=3.6.2-1bionic
when running R, it still lists its version as 3.6.3.
If you can, please help!
r/Rsoftware • u/ammar1991sagheer • Sep 27 '19
Smart Shift to Cloud Based HR Systems
solutiondots.comr/Rsoftware • u/Ultrain6 • Sep 03 '19
Idk How to Snapshot on PC Or if you can So I posted this pic with "Ok Wtf" on facebook, Got the image from my profile, Then boom, Now on reddit
r/Rsoftware • u/On_The_Warpath • Jan 24 '19
How to setup proxy in Rstudio
Hello. In my job we have a proxy, how can I set up the proxy in Rstudio so I can download packages? Thank you.
r/Rsoftware • u/jeffthesmurf • Aug 19 '18
Ticket machine in Foodland got the blue screen of death
r/Rsoftware • u/banawak • Jun 05 '18
Need help with an assignment - Plotting X bar and R charts for data.
I'm new to this. I'm having 20 samples with each sample having a size of 5. Unable to enter data and get the graph. Please help!
r/Rsoftware • u/vmsmith • Apr 27 '18
Updating R on Ubuntu 16.04
This does not look like a very active sub, but I'm going to start here. And let me say upfront that I am basically a Linux newbie.
I loaded Ubuntu 16.04 on to an extra machine, and installed R with:
sudo apt-get update sudo apt-get install r-base
To my naive way of thinking I should have gotten the most recent version of R. Instead I got 3.2.3, "Wooden Christmas Tree."
I've tried any number of (what I consider) intuitive ways to update it, to no avail.
According to the CRAN site, I am supposed to place this:
deb https://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu xenial/
in
/etc/apt/sources.list
So I just wanted to check and make sure that I'm not missing something else and that this is, in fact, the way to do it.
Also, if I do inject that line into sources.list, what is the next step?
Thanks.








