[Rd] simplex problem (PR#2317)
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Fri, 22 Nov 2002 11:03:26 +0000 (GMT)
You have to use library(boot) to use functions in boot.
*Please* send things like this to R-help, when you cna be advised how to
use R packages.
library(boot)
example(simplex)
works.
On Fri, 22 Nov 2002 george@lecompte.org wrote:
> Full_Name: George F. LeCompte
> Version: 1.6.1
> OS: Windows 98
> Submission from: (NULL) (208.8.162.161)
>
>
> This may be a newbie problem. I am attempting tor unt the simplex routine from
> the boot package. The example code doesn't find simplex. What's wrong here?
>
> > help(simplex,package=boot)
> > # from the resulting article
> >
> > # This example is taken from Exercise 7.5 of Gill, Murray,
> > # and Wright (1991).
> > enj <- c(200, 6000, 3000, -200)
> > fat <- c(800, 6000, 1000, 400)
> > vitx <- c(50, 3, 150, 100)
> > vity <- c(10, 10, 75, 100)
> > vitz <- c(150, 35, 75, 5)
> > simplex(a=enj, A1=fat, b1=13800, A2=rbind(vitx, vity, vitz),
> + b2=c(600, 300, 550), maxi=TRUE)
> Error: couldn't find function "simplex"
> >
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595