Thanks Barry,
 
Following your list order
1) It pops up a window saying R for windows GUI front-end crashed. Below three 
options: look for on-line solutions; shut down the program; debug the program 
(I'm translating from Spanish)
2) The processor of my laptop is an Intel Core duo 1,60GHz with ram= 4 GB, 32 
bits. The R version I have installed is 2.15.2 (2012-10-26)
3) I read the posting-guide. Ok, it may be basic statistics. Question withdrawn
 
I made an additional mistake: I attached the wrong files. Please run the code 
with these, and you'll see the problem.
 
Santi
 
 

From: Barry Rowlingson <b.rowling...@lancaster.ac.uk>
>To: Santiago Guallar <sgual...@yahoo.com> 
>Cc: "r-help@r-project.org" <r-help@r-project.org> 
>Sent: Tuesday, February 19, 2013 6:20 PM
>Subject: Re: [R] Cramer von Mises test for a discrete distribution
>
>On Tue, Feb 19, 2013 at 2:49 PM, Santiago Guallar <sgual...@yahoo.com> wrote:
>> Hi,
>>
>> I'm trying to carry out Cramer von Mises tests between pairs of vectors 
>> belonging to a discrete distribution (concretely frequencies from 0 to 200). 
>> However, the program crashes in the attempt. The problem seems to be that 
>> these vectors only have positive integer numbers (+ zero). When I add a 
>> random very small positive decimal to the non-decimal part everything works 
>> fine (files prm1 & prpmr1). I attach two of these vectors so you can run the 
>> following code. I've also thought to divide both vectors by a real constant 
>> such as pi. Do you think these two approaches are acceptable?
>>
>> setwd("")
>> require(CvM2SL2Test)
>> prm = scan('prm.txt')
>> prpmr = scan('prpmr.txt')
>> ct1 = cvmts.test(prm, prpmr) # here R crashes
>
>For you maybe. For me, works fine, and:
>
>> ct1
>
>[1] 30.20509
>
>> cvmts.pval( ct1, length(prm), length(prpmr) )
>
>- this is taking a bit longer. I gave up and killed it. Maybe it
>would have eventually "crashed R", but you said the other function
>call crashed R.
>
>Your two mistakes are:
>
>1. Saying "R crashes" without showing us any kind of crash report or
>error message.
>2. Not listing your system and package versions.
>
>Ah, your three mistakes are...
>
>3. Not reading http://www.r-project.org/posting-guide.html
>
>
>Barry
>
>
>
198
193
200
173
179
200
198
199
185
171
118
44
154
200
200
199
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
163
200
200
200
200
198
197
200
200
193
189
170
173
23
200
200
200
150
200
131
25
0
0
0
169
200
200
200
200
200
200
197
200
184
166
172
185
200
200
184
200
200
200
200
200
200
197
200
200
200
200
140
200
200
200
197
198
200
200
200
200
200
200
200
200
200
200
150
177
198
200
200
200
200
181
200
200
200
200
136
200
200
200
200
200
183
185
186
123
186
63
64
200
200
200
200
174
200
200
200
200
200
200
200
200
200
200
200
200
193
197
117
115
94
92
200
200
200
200
200
193
179
198
138
35
0
0
141
174
168
127
3
17
0
0
0
0
59
0
134
186
184
190
18
5
0
0
0
101
200
200
200
192
200
180
0
188
98
123
118
147
179
184
198
194
197
199
171
198
199
163
200
199
198
175
200
191
142
141
196
191
200
200
200
192
193
200
200
200
200
200
194
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
196
200
196
200
200
21
9
85
11
4
25
76
200
195
74
77
7
176
183
173
150
41
186
200
200
196
4
0
2
4
0
0
40
200
200
200
200
200
200
200
139
72
200
200
200
200
192
200
200
200
200
200
161
200
200
186
200
200
191
191
183
111
7
0
200
171
20
200
200
200
200
194
187
191
181
94
0
200
195
199
200
200
193
191
200
200
199
200
199
200
200
192
165
186
177
200
200
192
3
0
0
200
168
200
200
195
199
200
200
200
200
200
200
200
200
200
200
197
200
200
200
200
200
200
200
165
199
162
145
123
168
200
200
200
200
200
93
1
95
0
0
0
171
18
0
0
0
188
200
26
200
200
67
184
160
53
0
0
0
0
0
200
200
166
119
95
63
0
0
0
1
106
41
200
200
200
200
200
198
200
200
200
200
200
93
176
195
128
142
19
63
200
200
152
0
0
1
188
188
198
189
174
196
200
70
0
0
0
0
40
2
200
168
19
0
0
0
0
0
0
0
0
0
0
0
165
190
135
199
200
12
0
0
126
200
200
200
200
200
200
200
197
200
175
0
179
0
129
193
184
161
176
177
0
0
0
0
176
163
186
140
183
171
178
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
194
139
31
197
106
161
68
0
0
0
0
0
200
200
193
167
200
200
200
199
200
200
196
200
______________________________________________
R-help@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.

Reply via email to