mt.sample.label RGui: Rgui.exe - Application Error
1
0
Entering edit mode
Dick Beyer ★ 1.4k
@dick-beyer-26
Last seen 9.6 years ago
I get an error when trying to use mt.sample.label: RGui: Rgui.exe - Application Error The instruction at "0x113d1734" referenced memory at "0x00000000". The memory could not be "written". Click on OK to terminate the program... I am using R 1.7.1, multtest 1.0.2, windows 2000. Here is the code that generates this fatal error library(multtest) vg <- c(0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0) vgAll <- mt.sample.label(vg,B=0) Thanks for any help, Dick ********************************************************************** ********* Richard P. Beyer, Ph.D. University of Washington Tel.:(206) 616 7378 Env. & Occ. Health Sci. , Box 354695 Fax: (206) 685 4696 4225 Roosevelt Way NE, # 100 Seattle, WA 98105-6099
multtest multtest • 858 views
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 6 weeks ago
United States
> I get an error when trying to use mt.sample.label: > > RGui: Rgui.exe - Application Error > The instruction at "0x113d1734" referenced memory at "0x00000000". The memory could not be "written". Click on OK to terminate the program... > > I am using R 1.7.1, multtest 1.0.2, windows 2000. Here is the code that generates this fatal error > > library(multtest) > vg <- c(0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0) > vgAll <- mt.sample.label(vg,B=0) i reproduced this on XP, same versions. the problem is that the C code is not coping with B=0. nor is it clear what B=0 is intended to do. it seems that if B=1 then you get back vg. if you want a single permutation of vg, use sample(vg,size=length(vg),replace=FALSE)
ADD COMMENT
0
Entering edit mode
The B=0 option should create all permutations: B: The number of permutations. For a complete enumeration, `B' should be 0 (zero) or any number not less than the total number of permutations. ********************************************************************** ********* Richard P. Beyer, Ph.D. University of Washington Tel.:(206) 616 7378 Env. & Occ. Health Sci. , Box 354695 Fax: (206) 685 4696 4225 Roosevelt Way NE, # 100 Seattle, WA 98105-6099 ********************************************************************** ********* On Fri, 27 Jun 2003, Vincent Carey 525-2265 wrote: > > > I get an error when trying to use mt.sample.label: > > > > RGui: Rgui.exe - Application Error > > The instruction at "0x113d1734" referenced memory at "0x00000000". The memory could not be "written". Click on OK to terminate the program... > > > > I am using R 1.7.1, multtest 1.0.2, windows 2000. Here is the code that generates this fatal error > > > > library(multtest) > > vg <- c(0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0) > > vgAll <- mt.sample.label(vg,B=0) > > i reproduced this on XP, same versions. the problem is that > the C code is not coping with B=0. nor is it clear what B=0 > is intended to do. it seems that if B=1 then you get back > vg. if you want a single permutation of vg, use > sample(vg,size=length(vg),replace=FALSE) > >
ADD REPLY

Login before adding your answer.

Traffic: 955 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6