search for: ajayshahblog

Displaying 20 results from an estimated 36 matches for "ajayshahblog".

2008 Mar 17
4
How does one do simple string concatenation?
...bcd"? > paste(c("a","b","c"), "d") of course yields [1] "a d" "b d" "c d" -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2008 Mar 07
4
Reading microsoft .xls format and openoffice OpenDocument files
...know how we might approach this? Am I correct in thinking that our goal is reading OpenDocument files (http://en.wikipedia.org/wiki/OpenDocument) ? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2008 Mar 18
3
Puzzled at generating combinations
...R3 r3 R1 r3 R2 r3 R3 How would I go about doing this? I'm sure there's a clean way to do it but I find myself thinking in loops. -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2006 Jan 26
2
Prediction when using orthogonal polynomials in regression
...,5,.5) We know that the predicted values should be roughly sin(xnew). What I don't know is: how do I use the object `d' to make predictions for xnew? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2006 Mar 06
3
Interleaving elements of two vectors?
...think of a clever and general way to write this. I am aware of gdata::interleave() but it deals with interleaving rows of a data frame, not elems of vectors. -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2006 Jan 22
6
Making a markov transition matrix
...# This is a bad method because it is hardcoded to the specific values # of "year". markov <- table(destination$prev.state, destination$new.state) -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2009 May 14
2
How to do a pretty panel plot?
...Dates and the axis labelling doesn't get that. How do I set about making a pretty panel plot of these two series, both of which share a common time axis? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2007 Dec 19
1
Code for articles in R news?
...cle on np in R news 7/2 (October 2007). What's the general technique to get the source code associated with the article as a .R file that I can play with? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2008 Mar 05
1
New data source - now how do we build an R interface?
...le URLs which can then be wget. There's some javascript going on that I'm not understanding. Perhaps someone on the mailing list can think about this? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2008 Oct 15
2
"Heuristic optimisation"?
...http://www.voxeu.org/index.php?q=node/2363 which talks about the problems of obtaining sound answers in numerical optimisation in settings such as MLE or NLS. -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2009 Oct 17
2
How do I access with the name of a (passed) function
...} f(c(2,3,4), "median") f(c(2,3,4), "mean") and get the results "The median of x is 3" "The mean of x is 3" -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2008 Dec 26
1
Question about regression without an intercept
...to this. I would greatly appreciate some help in understanding this, and (more generally) in interpreting the R2 of regressions where the intercept is absent. -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2009 Mar 15
1
cbind(NULL,zoo.object)?
...s = "zoo") : Index vectors are of different classes: integer Date Is there an easy workaround; or am I deeply confused; is there a way out? :-) -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2007 Oct 09
3
How do I obtain the design matrix of an lm()?
...I could, of course, do this manually. But it seems that lm() has done all this hard work. I wonder if there's a way to ask him nicely so as to get it. :-) -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2006 Jan 19
2
Tobit estimation?
...ment on the Indian stock market. Lots of firms have zero foreign investment. But many do have foreign investment. I thought this is a natural tobit situation. -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2007 Jul 18
2
maximum likelihood estimation
Hello! I need to perform maximum likelihood estimation on R, but I am not sure which command to use. I searched on google, and found an example using the function mlogl, but I couldn't find the package on R. Is there such function? Or how should i perform my mle? Thank you very much. -- View this message in context:
2007 Oct 28
1
maximizing a function
See http://mayin.nfshost.com/ajayshah/KB/R/documents/mle/mle.html -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2009 Nov 04
1
Sequential MLE on time series with rolling window
Hi, Assuming I have a time series on which I will perform rolling-window MLE. In other words, if I stand at time t, I'm using points t-L+1 to t for my MLE estimate of parameters at time t (here L is my rolling window width). Next, at t+1, I'll do the same. My question is that is there anyway to avoid performing MLE each time like does the above. My impression is that rolling from point t
2006 Jan 23
0
Making a markov transition matrix - more progress
...imevar="year", idvar="name", statevar="state") # The new and improved way -- library(msm) statetable.msm(state, name, data=raw) -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.
2007 May 27
0
Not able to understand the behaviour of boot
...d that it should be symmetric about 0. What am I missing? As an aside, how would you set about using tsboot() to obtain inference for this AR(1) coefficient? -- Ajay Shah http://www.mayin.org/ajayshah ajayshah at mayin.org http://ajayshahblog.blogspot.com <*(:-? - wizard who doesn't know the answer.