Re: [R] 3-D plot of likelihood

From: Ben Bolker <bolker_at_ufl.edu>
Date: Mon, 10 Dec 2007 18:57:05 -0800 (PST)

Duncan Murdoch-2 wrote:
>
> On 12/10/2007 11:26 AM, David Bickel wrote:

>> Could anyone recommend a package for visualizing a likelihood function
>> of two scalar parameters? I would prefer a three-dimensional plot
>> similar to the kind Mathematica is known for, perhaps generated by a
>> package not specific to likelihood.

>
> The basic strategy is to calculate a matrix of values of the likelihood,
> corresponding to all combinations of values of two vectors. Then
> persp() (in graphics) or persp3d() (in rgl) can display the surface.
>
> I don't know of anything that corresponds to curve() to do the matrix
> calculations automatically, but it may well exist.
>
> Duncan Murdoch
>
>

See ?curve3d in the emdbook package ...

  Ben Bolker

-- 
View this message in context: http://www.nabble.com/3-D-plot-of-likelihood-tp14256532p14266744.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 11 Dec 2007 - 03:05:55 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 11 Dec 2007 - 06:30:18 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.