[R] Standard variance / devistion clarification

Peter Ehlers ehlers at ucalgary.ca
Thu Mar 1 23:57:03 CET 2012


On 2012-03-01 13:52, John Kane wrote:
> No it's an outlier problem, I think.
>
> If you have a fairly small number of sets of these numbers simple visual inspection of a boxplot for each set would probably acomplish what you want.
>
> Try this in R for an example. Just paste the next two lines into R
>
> xx<- c(1, 1, 2, 10, 100, 10,1)
> boxplot(xx)

For graphical analysis, I would prefer plot(xx, type="h").
But "most different as compared to the others" is not
well-defined. Possibly something like scale(xx) would help.

Peter Ehlers

>
> After this it gets more complicated, but it you're new here let's take it one step at a time
>
>
> John Kane
> Kingston ON Canada
>
>
>> -----Original Message-----
>> From: surangakas at gmail.com
>> Sent: Thu, 1 Mar 2012 09:30:59 -0800
>> To: r-help at r-project.org
>> Subject: [R] Standard variance / devistion clarification
>>
>> Dear gurus,
>>
>> Im a newbie, and I want to ask a very general question.
>> Assume that I have a set of numbers as follows,
>>
>> 1, 1, 2, 10, 100, 10,1
>>
>> > From these, I need to identify which number is the most different as
>> compared to others. (in this case, it will be 100, since its way larger
>> than the other numbers). It doesnt have to be specifically this way, but
>> I
>> need to identify which number(s) are most different compared to the
>> others.
>>
>> Any idea as to what I need to do this ? Im a math noob, so I'm also going
>> to need to ask it this is called 'standard deviation' or 'variance' :-)
>>
>> --
>> Best Regards,
>>
>> Suranga
>>
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ____________________________________________________________
> Send your photos by email in seconds...
> TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3
> Works in all emails, instant messengers, blogs, forums and social networks.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list