Re: [R] question about simulation.

2003-08-20 Thread Uwe Ligges
Lily wrote:
The problem has been solved. It is my mistake for not
define the number of monte.carlo simulation when I am
using mle.cv. 

Thank you all for your help!
My last comment:
It is your mistake not to specify required arguments, but there *is* a 
bug in wle. You should get an error message instead of that crash ...

Uwe Ligges


--- Spencer Graves <[EMAIL PROTECTED]> wrote:

What version of R under what operating system with
how much memory? 
What R functions are you using?  Can you do a
traceback()?  Also, have 
you tried "www.r-project.org" -> search -> "R site
search"?

hope this helps.  spencer graves

Lily wrote:

I am running a 1000 simulations, it works for 2
simulations. However, I get the following error
message whenever I run it more than 3 times:
"The instruction at '0*11044080' referenced memory
at

"o*3ff0". The memory could not be "written".
and, I can also get something like "exception:
access

violation (0*c005). Address:0*11044080".

Anybody knows what's going on? Thanks a lot!

__
[EMAIL PROTECTED] mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] question about simulation.

2003-08-20 Thread Lily
The problem has been solved. It is my mistake for not
define the number of monte.carlo simulation when I am
using mle.cv. 

Thank you all for your help!

--- Spencer Graves <[EMAIL PROTECTED]> wrote:
> What version of R under what operating system with
> how much memory? 
> What R functions are you using?  Can you do a
> traceback()?  Also, have 
> you tried "www.r-project.org" -> search -> "R site
> search"?
> 
> hope this helps.  spencer graves
> 
> Lily wrote:
> > I am running a 1000 simulations, it works for 2
> > simulations. However, I get the following error
> > message whenever I run it more than 3 times:
> > 
> > "The instruction at '0*11044080' referenced memory
> at
> > "o*3ff0". The memory could not be "written".
> > and, I can also get something like "exception:
> access
> > violation (0*c005). Address:0*11044080".
> > 
> > Anybody knows what's going on? Thanks a lot!
> > 
> > __
> > [EMAIL PROTECTED] mailing list
> >
>
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 
>

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] question about simulation.

2003-08-20 Thread Spencer Graves
What version of R under what operating system with how much memory? 
What R functions are you using?  Can you do a traceback()?  Also, have 
you tried "www.r-project.org" -> search -> "R site search"?

hope this helps.  spencer graves

Lily wrote:
I am running a 1000 simulations, it works for 2
simulations. However, I get the following error
message whenever I run it more than 3 times:
"The instruction at '0*11044080' referenced memory at
"o*3ff0". The memory could not be "written".
and, I can also get something like "exception: access
violation (0*c005). Address:0*11044080".
Anybody knows what's going on? Thanks a lot!

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] question about simulation.

2003-08-20 Thread Lily
Thanks for your response.I am working on R-1.7.1 under
windows. Here is part of my code for simulation:

x1<-...
y1<-...
beta<-c(1,3,5,7,9))
mn<-0
for ( i in 1:3) {

e1<-rnorm(40,mean=0,sd=1)
y1<-x1%*%beta+e1
result<-mle.cv(y1~x1)
result2<-result[1, ]
mn<-rbind(mn, result2)

}
mn

Thanks!! 


--- Uwe Ligges <[EMAIL PROTECTED]>
wrote:
> Lily wrote:
> 
> > I am running a 1000 simulations, it works for 2
> > simulations. However, I get the following error
> > message whenever I run it more than 3 times:
> > 
> > "The instruction at '0*11044080' referenced memory
> at
> > "o*3ff0". The memory could not be "written".
> > and, I can also get something like "exception:
> access
> > violation (0*c005). Address:0*11044080".
> 
> You found a bug.
> 
> I guess you are on Windows (which?) and you are
> talking about R-1.7.1 
> (please tell us these details).
> 
> Can you provide a minimal example that reproduces
> the error with 
> R-1.7.1, please?
> 
> Uwe Ligges
>

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] question about simulation.

2003-08-20 Thread Uwe Ligges
Lily wrote:

I am running a 1000 simulations, it works for 2
simulations. However, I get the following error
message whenever I run it more than 3 times:
"The instruction at '0*11044080' referenced memory at
"o*3ff0". The memory could not be "written".
and, I can also get something like "exception: access
violation (0*c005). Address:0*11044080".
You found a bug.

I guess you are on Windows (which?) and you are talking about R-1.7.1 
(please tell us these details).

Can you provide a minimal example that reproduces the error with 
R-1.7.1, please?

Uwe Ligges

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] question about simulation.

2003-08-20 Thread Lily
I am running a 1000 simulations, it works for 2
simulations. However, I get the following error
message whenever I run it more than 3 times:

"The instruction at '0*11044080' referenced memory at
"o*3ff0". The memory could not be "written".
and, I can also get something like "exception: access
violation (0*c005). Address:0*11044080".

Anybody knows what's going on? Thanks a lot!

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help