Re: [R] Simulation study in R

From: Arun Kumar Saha <arun.kumar.saha_at_gmail.com>
Date: Tue, 29 Apr 2008 12:51:28 +0530

x, y are cont. variable, and f also have to be cont.. And your second suggestion is correct of course, it actually should be |f(x,y) - c| < epsilon

Thanks

On Tue, Apr 29, 2008 at 12:34 PM, Moshe Olshansky <m_olshansky_at_yahoo.com> wrote:
> Are the pairs (x,y) belong to some lattice or can
> change continuously?
> Does f assume some discrete values (or is constant on
> sets of positive measure)? If not then it will be hard
> to randomly select x and y which satisfy the exact
> equality (this still can happen since there are
> finitely many computer numbers, but their number is
> quite large!). So if f change continuously you may
> need the condition |f(x,y) - c| < epsilon for some
> epsilon > 0.
>
> Regards,
>
> Moshe.
>
>
> --- Arun Kumar Saha <arun.kumar.saha_at_gmail.com> wrote:
>
> > Here I am in a simulation study where I want to find
> > different values
> > of x and y such that f(x,y)=c (some known constant)
> > w.r.t. x, y >0,
> > y<=x and x<=c1 (another known constant). Can anyone
> > please tell me how
> > to do it efficiently in R. One way I thought that I
> > will draw

> > different random numbers from uniform dist according
> > to that
> > constraints and pick those which satisfy f(x,y)=c.
> > However it is not I
> > think computationally efficient. Can anyone here
> > suggest me any other
> > efficient approach?
> >
> > Regards,
> >
> > ______________________________________________
> > 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.
> >
>
>

--

______________________________________________
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.
Received on Tue 29 Apr 2008 - 07:41:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Apr 2008 - 08:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive