-contained, reproducible code.
--
Dr E.A. Catchpole
Visiting Fellow
Univ of New South Wales at ADFA, Canberra, Australia
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m
Talarico Massimiliano (UniCredit Xelion Banca) wrote on 07/17/2007 06:00
PM:
Dear all,
I need a suggest to obtain the max of this function:
Max x1*0.021986+x2*0.000964+x3*0.02913
with these conditions:
x1+x2+x3=1;
sqrt((x1*0.114434)^2+(x2*0.043966)^2+(x3*0.100031)^2)=0.04;
x1=0;
-contained, reproducible code.
--
Dr E.A. Catchpole
Visiting Fellow
Univ of New South Wales at ADFA, Canberra, Australia
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m
South Wales at ADFA, Canberra, Australia
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m- ph: +61 2 6268 8895
__
R-help
South Wales at ADFA, Canberra, Australia
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m- ph: +61 2 6268 8895
__
R-help
/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m- ph: +61 2 6268 8895
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m- ph: +61 2 6268 8895
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch
.
--
Dr E.A. Catchpole
Visiting Fellow
Univ of New South Wales at ADFA, Canberra, Australia
_ and University of Kent, Canterbury, England
'v'- www.pems.adfa.edu.au/~ecatchpole
/ \ - fax: +61 2 6268 8786
m m- ph: +61 2 6268 8895
- www.pems.adfa.edu.au/~ecatchpole
- fax: +61 2 6268 8786
- ph: +61 2 6268 8895
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
Try sending this question to [EMAIL PROTECTED]
Ted.
On 09/11/05 10:09, Srinivas Iyyer wrote,:
Dear Group,
I am new to R and Emacs both. Until now I have been
working through R's interactive space. Today I
configured R+XEmacs by following John Fox help file -
how to configure Xemacs +
Well, there's downTHEMall, a Mozilla Firefox extension
(https://addons.mozilla.org/extensions/).
Ted.
On 31/10/05 11:38, Murray Jorgensen wrote,:
I have not had a great amount of success installing/updating packages
from the Packages menu of Rgui under Windows XL. (Except for
installing
: some are being fixed for 2.3.0.)
On Tue, 11 Oct 2005, ecatchpole wrote:
On 11/10/05 01:12, Earl F. Glynn wrote,:
FISCHER, Matthew [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In a plot, can I specify pch to be a greek symbol? (I looked at
show.pch() in the Hmisc package
Earl,
I don't think that's a bug. Try
pdf(font5.pdf, onefile=FALSE)
and similarly for postscript().
Ted.
On 12/10/05 01:23, Earl F. Glynn wrote,:
ecatchpole [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks for that. Very instructive, and much appreciated.
And sorry, yes
On 11/10/05 01:12, Earl F. Glynn wrote,:
FISCHER, Matthew [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In a plot, can I specify pch to be a greek symbol? (I looked at
show.pch() in the Hmisc package but couldn't see the right symbols in
there).
If not, I guess I can get
See the R FAQ list, section 7. Why doesn't R think these numbers are equal?
Ted.
On 11/10/05 15:42, Joe wrote,:
Dear userR,
With the following results, are they correct or acceptable?
x - c(1.4, 1.2, 2.8)
sum(x)
[1] 5.4
sum(x) == 5.4
[1] FALSE
(1.4 + 1.2 + 2.8) - 5.4
[1] -8.881784e-16
Eric,
If you want samples of size 3 from 0:50, with sum==50, this seems to do
the job (with apologies to those who really know how to program in R):
tot - 50
ii - 0
aa - list()
for(i in 0:tot){
for(j in 0:(tot-i)){
k - tot-i-j
ii - ii+1
aa[[ii]] - list(i=i,j=j,k=k)
Try
xnew - edit(data.frame())
Ted.
On 04/10/05 16:29, Nathan Dieckmann wrote,:
Hey there,
I apologize if this is an irritatingly simple question ... I'm a
new user. I can't understand why R flips the sign of all data values
when reading in external text files (tab delimited or
Niara,
Alternatively, instead of scatter3d, the analogy to hold on in Matlab
is to use plot() for the first set of data, then points() for the
remainder. See
?plot
?points
Ted.
On 05/10/05 11:18, John Fox wrote,:
Dear Naiara,
Combine the data sets and differentiate among them with a
Eric,
Following on from Ravi's suggestion, try
ex - c(30,13,9,8,7,7,7,6,6,5,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1)
tot - sum(ex)
N - length(ex)
rmultinom(n=3, size=tot, prob=rep(1,N))
Ted.
On 05/10/05 06:07, Nordlund, Dan wrote,:
Eric,
-Original Message-
From: [EMAIL PROTECTED]
Try
plot(data.df$temp, data.df$output)
Ted.
On 04/10/05 07:31, Robbie Turner wrote,:
I am currently trying to use R to construct a regression model to
explain output based on temperature. I have combined my output and temp
data into a notepad file. there is no problem with loading the data
Try
?pt
Ted.
On 30/08/05 13:33, 孟欣 wrote,:
As to the functionpnorm,the default degree of freedom(df) is infinite.
I wanna know how to set the df as I want.
Help on pnorm doesn't have df setting.The only choice are:mean, sd,
lower.tail, log.p,but no df.
For instance:
sample size=6
On 12/08/05 05:55, xpRt.wannabe wrote,:
Dear List,
I have the following code that does what I want:
x - replicate(5,replicate(10,sum(rnorm(rpois(1,10)
How might one change it such that the maximum value generated by
rnorm(rpois(1,10)) can be retrieved for later use?
set.seed(99)
x
4.6865908 0.9852816 1.032410
On 12/08/05 12:17, xpRt.wannabe wrote,:
Ted and List,
In your code that produced 'mx', you dropped sum() from my original
code though. As a result, the 10 x 5 max's are of the same value.
Unfortunately, that's not what I need.
On 8/11/05, ecatchpole
On 12/08/05 13:27, xpRt.wannabe wrote,:
Ted and List,
What I need is I need to know what max of rnorm(rpois(1,10)) is before
R does sum(), replicate(10, ...) and replicate(5, ...).
The fact that you have set.seed(99) twice, does that mean, say, entry
[1,1] 0.4896243 in 'mx' is one of the
I'm looking for something like Brian Ripley's glmmPQL that will handle
multinomial data. Does anyone know of anything?
Thanks, Ted.
--
Dr E.A. Catchpole
Visiting Fellow
Univ of New South Wales at ADFA, Canberra, Australia
and University of Kent, Canterbury, England
- [EMAIL PROTECTED]
-
25 matches
Mail list logo