Displaying 20 results from an estimated 400 matches similar to: "optim"
2003 Feb 12
4
Interpolation
Dear all,
I have two vectors and connect the points by line segments:
x <- c(1990,1994,1995,1997)
y <- c(30,40,80,20)
plot(x,y,type="l")
I want to get the values of y's on these lines at missing x's,
i.e., at 1991,1992,1993,and 1996. Is there a simple way to do this?
Best regards,
Remigijus mailto:remigijus.lapinskas at maf.vu.lt
2002 Jun 29
2
NA=NA
Hello R-help,
My vector aa has some NA's:
> aa_c(NA,1)
> aa=="NA"
[1] NA FALSE
> aa==NA
[1] NA NA
How can I detect NA's?
In other words, I would like my answer to be TRUE FALSE.
Best regards,
Remigijus mailto:remigijus.lapinskas at maf.vu.lt
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help
2005 Sep 29
2
priceIts
Dear All,
There is an example for the priceIts function (the its package) which
does not work for me as expected.
> ?priceIts
> x1 <- priceIts(instrument = c("^ftse"), start = "1998-01-01",
+ quote = "Close")
Error in validObject(.Object) : invalid class "its" object: Missing
values in dates
> x2 <-
2006 Jul 04
1
Problems when computing the 1rst derivative of mixtures of densities
Hi everybody,
I am currently working on mixtures of two densities ( f(xi,teta)=
(1-teta)*f1(xi) + teta*f2(xi) ),
particularly on the behavior of the variance for teta=0 (so sample only
comes from the first distribution).
To determine the maximum likelihood estimator I use the Newton-Rapdon
Iteration. But when
computing the first derivative I get a none linear function (with several
asymptotes)
2001 Sep 06
1
East European
Dear List,
There has just been this question (as well as the answer to it) in the S list:
> I would like to put some text in plots... but in french. How can I
> write accented letters?
> I suppose that there is a possibility similar as the one which
> works in LaTeX, isn't it?
What about R (for Windows and in East European languages)? Specifically,
how can I give a title like
2007 May 07
4
Mardia's multivariate normality test
Dear all,
I got this error message
> library(dprep)
> mardia(Savg)
Error in cov(data) : 'x' is empty
But with the same data, I got
> library(mvnormtest)
> mshapiro.test(Savg)
Shapiro-Wilk normality test
data: Z
W = 0.9411, p-value = 0.6739
What does the error message "Error in cov(data) : 'x' is empty" mean? Thanks a lot!
Jiao
2007 Jan 31
4
possible spam alert
The last two times I have originated message threads on R or
Bioconductor I have received the message included below from someone
named Patrick Connolly. Both times I was the originator of the message
thread and used what I thought was a unique subject line that explained
as best I could what my question was. Patrick seems to be implying that
I am abusing the R and BioC help newsgroups in this
2012 Jan 22
4
Solving Equations
People,
I'm researching some Bayesian statistic topics and in the midle of my study
i found a very simple problem and i'm trying to find a simple package to
solve this type of equations:
Lets say that i need to compute beta values for the beta distribution and i
now for example:
E(teta)=a/(a+b) = 0,5
Var(teta)=ab/((a+b)^2(a+b+1))=0.05
So if i want to solve this to non-linear system to
2005 Mar 05
4
How to use "lag"?
Is it possible to fit a lagged regression, "y[t]=b0+b1*x[t-1]+e",
using the function "lag"? If so, how? If not, of what use is the
function "lag"? I get the same answer from y~x as y~lag(x), whether
using lm or arima. I found it using y~c(NA, x[-length(x)])). Consider
the following:
> set.seed(1)
> x <- rep(c(rep(0, 4), 9), len=9)
> y <-
2008 May 27
2
[LLVMdev] Min and max
Hi all,
I'm trying to implement a floating-point 'min' and 'max' operation using
select. For 'min' I get the expected x86 assembly minss instruction, but for
'max' I get a branch instead of maxss.
The corresponding C syntax code looks like this:
float z = (x > y) ? x : y;
Any clues?
Could someone maybe explain to me the basics of
2004 Aug 29
1
predict(arima)
Dear All,
R 1.9.1, Windows
When copying and pasting a few lines from the 'predict.Arima' help, I
get an error message:
> data(lh)
> predict(arima(lh, order = c(3,0,0)), n.ahead = 12)
Error in eval(expr, envir, enclos) : Object "xreg" not found
On the other hand, the following is OK:
> data(lh)
> predict(arima0(lh, order = c(3,0,0)), n.ahead = 12)
$pred
Time
2003 Jan 27
0
Please begin a new subject if your post isn't a response to a previous one
Most mornings, I have over a screenful of messages mostly from R-help
and it's very useful to have them threaded. However, the usefulness
of threading is lost when posters reply to a message and then change
the subject instead of creating a new message.
People who don't have a mail client that can display email in threads
are probably unaware that this sort of thing can happen in ones
2011 Nov 11
8
Help
Dear Contributors
I would like to perform this operation using a loop, instead of repeating
the same operation many times.
The numbers from 1 to 4 related to different groups that are in the
database and for which I have the same data.
x<-c(1,3,7)
datiP1 <- datiP[datiP$city ==1,x];
datiP2 <- datiP[datiP$city ==2,x];
datiP3 <- datiP[datiP$city ==3,x]
datiP4 <-
1998 Nov 11
3
domain controller parameter
>From the <samba>/var/log/<client>.log file:
doing parameter domain controller = AZPHXNT01
Unknown parameter encountered: "domain controller"
Ignoring unknown parameter "domain controller"
>From the smb.conf file:
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use
2013 Oct 21
3
speeding up "sum of squared differences" calculation
All,
I am using a sum of squared differences in the objective function of an optimization problem I am doing and I have managed to speed it up using the outer function versus the nested for loops, but my suspicion is that the calculation could be done even quicker. Please see the code below for a simple example. If anyone can point out a faster way I would appreciate it greatly.
Thanks,
Roger
2005 Jan 09
2
How can I simulate Pareto distribution in R?
Hi, guys,
I need to simulate Pareto distribution. But I found 'rpareto' didn't exist in R. And it seems that Pareto distribution don't have mathematical relationships with other distributions. What can I do?
Thanks a lot.
Ni
---------------------------------
[[alternative HTML version deleted]]
2011 Jan 20
0
Writing functions. please help
Hi, my name is Guilherme and I'm trying to solve an optimization problem in
R, regarding reliability and survival time of equipments. I Have to write
the function in the image attached to this email, please take a look, where
the f(t) is weibull's distribution density function, Ca=1000 and Cb=100 are
costs of two equipments and i'm using shape=2.5 and scale=20. However, a few
problems
2003 Jan 25
7
Plotting coloured histograms...
Hi, I am having some trouble trying to plot a histogram in more than one
colour. What I want to do is, plot two vectors in the same histogram, but
with different colours, for instance:
> x <- rnorm(1000,20,4);
> y <- rnorm(1000,10,2);
Then I'd like to have x and y ploted on the same hist (I can do that
already doing w <- c(x,y) then hist(w)) but the bars
2008 Jan 11
1
MRCP Asterisk Integration
Hello asterisk users!
Does asterisk (or any of its plugin) support MRCP to interface with 3rd
party professional TTS engine?
I've found very little information about this, for example:
http://www.zen-turkey.com/blog/default.aspx?id=12&t=Asterisk-MRCP-Integr
ation
Thanks in advance!
Regards,
Claudio
Internet Email Confidentiality Footer
2012 Feb 16
0
Need For Help about audio data compression
Hi all,
I am new to the mailing list , and i need your help.
i want to compress audio raw data (PCM) after i have captured them in (sensor) and get them as 16-bit integr samples.
that is, when i capture voice for,say, 1 second, i get an array of 8 kilo sample, and I NEED TO COMPRESS THIS SO THAT I GET A SMALLER SIZE BEFORE I TRANSMIT THEM WIRELESSLY.
Does Speex allow me to such compression ?
Any