\"\"
Piano Forum logo

Does anyone know how to use R for statistics (Read 1042 times)

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Does anyone know how to use R for statistics
« on: October 18, 2013, 04:19:16 AM »
What the fuarkk, It won't plot a boxplot for some reason. This is annoying..

Offline j_menz

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 10150
Re: Does anyone know how to use R for statistics
«Reply #1 on: October 18, 2013, 04:41:01 AM »
In what program?
"What the world needs is more geniuses with humility. There are so few of us left" -- Oscar Levant

Offline senanserat

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 672
Re: Does anyone know how to use R for statistics
«Reply #2 on: October 18, 2013, 04:46:43 AM »
Are we talking about R= |U|-> A U B ?
"The thousand years of raindrops summoned by my song are my tears, the thunder that strikes the earth is my anger!"

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #3 on: October 18, 2013, 04:49:16 AM »
this program.. R x64 3.0.2
it's free software that my uni course requires me to use..

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #4 on: October 18, 2013, 04:51:10 AM »
it thinks i have 2 quantitative variables, when i have 1 quantitative and 1 categorical. What the fuark.

Offline senanserat

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 672
Re: Does anyone know how to use R for statistics
«Reply #5 on: October 18, 2013, 04:52:59 AM »
Though we were talking 'bout dem math formulas...
"The thousand years of raindrops summoned by my song are my tears, the thunder that strikes the earth is my anger!"

Offline j_menz

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 10150
Re: Does anyone know how to use R for statistics
«Reply #6 on: October 18, 2013, 04:54:45 AM »
There's always the manuals.....
"What the world needs is more geniuses with humility. There are so few of us left" -- Oscar Levant

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #7 on: October 18, 2013, 04:57:41 AM »
for some reason it isn't reading the tab delimited file correct, what the ***
I hate technology, screw this, why don't we all just revert back to using pen and paper

Offline j_menz

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 10150
Re: Does anyone know how to use R for statistics
«Reply #8 on: October 18, 2013, 04:59:28 AM »
Have you tried changing it to a comma delimited one?
"What the world needs is more geniuses with humility. There are so few of us left" -- Oscar Levant

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #9 on: October 18, 2013, 05:01:35 AM »
what's the difference? o-o

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #10 on: October 18, 2013, 05:08:39 AM »
ok i give up. not worth the effort, i'll just ask a friend

Offline j_menz

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 10150
Re: Does anyone know how to use R for statistics
«Reply #11 on: October 18, 2013, 05:10:14 AM »
what's the difference? o-o

The character used to delineate fields. Comma separated is more common, so may be handled better (or indeed be what it is expecting).
"What the world needs is more geniuses with humility. There are so few of us left" -- Oscar Levant

Offline iansinclair

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 1472
Re: Does anyone know how to use R for statistics
«Reply #12 on: October 19, 2013, 11:25:43 PM »
R, if you are meaning the correlation coefficient between two variables which it seems as though you are, is only usable for two quantitative variables.  Further, to be reliable, both of those variables must be normally distributed, or transformed in such a way that they are normally distributed.

There are correlation statistics which can be use for categorical variables, but R isn't one of them.
Ian

Offline theholygideons

  • PS Silver Member
  • Sr. Member
  • ***
  • Posts: 821
Re: Does anyone know how to use R for statistics
«Reply #13 on: October 19, 2013, 11:33:30 PM »
i'm talking about R as the program, mate.
i thought correlation coefficient was lower case r anyway.
thanks for trying to help anyhow.

Offline kalirren

  • PS Silver Member
  • Full Member
  • ***
  • Posts: 144
Re: Does anyone know how to use R for statistics
«Reply #14 on: October 31, 2013, 09:38:24 PM »
If you have one quantitative variable x you need to change to a category variable try

x <- factor(x)

Then try your boxplot again.

Edit:  Oops.  The original post had category(x) which isn't a command.
Beethoven: An die Ferne Geliebte
Franck: Sonata in A Major
Vieuxtemps: Sonata in Bb Major for Viola
Prokofiev: Sonata for Flute in D Major