Dear R Help,
I am trying to create a boolean vector that is TRUE whenever a
particular value occurs in a numeric vector, and FALSE otherwise. For
example, suppose that
y - c(5, 2, 4, 3, 1)
y
[1] 5 2 4 3 1
and suppose that I want to find where 3 occurs in y. Then, the following
yields the
You're not too far off.
You need to do something like
objfun - function(p) {
mu - p[1]
sigma - p[2]
-sum(dnorm(x,mean=mu,sd=sigma,log=TRUE))
}
optim(par=c(0,1),fn=objfun) # check ?optim for correct argument names
Some points:
- the main thing is that you have to define mu and
Hello everyone,
Is it possible to call R in JAVA? Thanks!
Jacqueline
__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
Dear R-help,
Here's a posting to the most recent NA-digest:
From: Robert van de Geijn [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 11:15:23 -0600
Subject: Fast BLAS Libraries for Current Architectures
Recent research by Kazushige Goto, Visiting Scientist at UT-Austin,
has resulted in
ngayee == Ngayee J Law Ngayee writes:
ngayee Is it possible to call R in JAVA? Thanks!
Yes.
--
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics [EMAIL PROTECTED]
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL