Skip to content
Back to formatted view

Raw Message

Message-ID: <5e7cc41f-b91b-4468-a933-c7f0f3cc138e@email.android.com>
Date: 2013-05-03T13:26:05Z
From: Jeff Newmiller
Subject: Very basic statistics in R
In-Reply-To: <CAF7OBP9+q9si3jxNEfsZsQbtEHK3ZDME2g2-7MwfY6UX433TGQ@mail.gmail.com>

I recommend you read the Introduction to R document that comes with R. Look for making vectors with the c() function, and using the mean() and sd() functions. 

Note that this is not a homework help forum (read the Posting Guide mentioned at the bottom of every message). If this is not homework, you are going to need to do quite a bit of self study before you can ask questions clearly enough to get useful responses on this list. See

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Xavier Prudent <prudentxavier at gmail.com> wrote:

>Dear all,
>
>Very simple question, but apparently uneasy to solve in R:
>
>I have a sampling of a variable x: (3, 4. 5, 2, ...)
>
>I want to know:
> - the mean <x>                   -> mean(x)
> - the uncertainty on <x>       -> std.error(x) ? Or sd(x)?
> - the standard deviation of x  -> ?
> - the uncertainty on the standard deviation -> ?
>
>Anyone has an idea?
>
>Thanks in advance,
>
>regards,
>Xavier