s-news
[Top] [All Lists]

Re: One question about Q-Q plot

To: Chih-Hao Chien <jchihao@yahoo.com>
Subject: Re: One question about Q-Q plot
From: Peter Ehlers <ehlers@math.ucalgary.ca>
Date: Fri, 24 Mar 2006 11:32:54 -0700
Cc: s-news@wubios.wustl.edu
In-reply-to: <20060324163911.10916.qmail@web30811.mail.mud.yahoo.com>
References: <20060324163911.10916.qmail@web30811.mail.mud.yahoo.com>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)


Chih-Hao Chien wrote:

Dear all,
Following part is my R code for Q-Q plot.
file <- read.csv(file=filepath,sep=",",header=T)
file

   Russell.2000.Growth
1                -0.01
2                 0.23
3                -0.11
4                -0.10
5                -0.09
6                 0.13
7                -0.09
8                 0.11
9                -0.05
10               -0.08
11               -0.18
12                0.06
13                0.08
14               -0.14
15               -0.09
16                0.12
17                0.02
18                0.03
19               -0.09
20               -0.06
21               -0.16
22                0.10
23                0.08
24                0.06
25               -0.04
26               -0.06
27                0.09
28               -0.02
29               -0.06
30               -0.08
31               -0.15
32                0.00
33               -0.07
34                0.05
35                0.10
36               -0.07
37               -0.03
38               -0.03
39                0.02
40                0.09
41                0.11
42                0.02
43                0.08
44                0.05
45               -0.03
46                0.09
47                0.03
48                0.00

qqnorm(file)

Error in order(y) : unimplemented type 'list' in 'orderVector1'---- What does 
it mean ?


How to implement successfully this data for Q-Q plot ?
Thanks a lot.
C.H

Don't feed a data frame to qqnorm(); give it a vector:

qqnorm(file$Russell.2000.Growth)

Peter Ehlers


<Prev in Thread] Current Thread [Next in Thread>