[R] Using the digest and t distribution.

2012-01-28 Thread Rohit Pandey
Hello R community, I have two questions: The first might be one of the silliest ever posted here and I apologize if I've missed some thing very obvious. It relates to using this digest. When I subscribed to the forum, I had chosen the "digest" option that bundles all mails every day into a single

[R] Need help interpreting the logit regression function

2012-01-15 Thread Rohit Pandey
Hello R community, I have a question about the logistic regression function. Specifically, when the predictor variable has not just 0's and 1's, but also fractional values (between zero and one). I get a warning when I use the "glm(formula = ... , family = binomial(link = "logit"))" which says: "

Re: [R] help with the maxBHHH routine

2011-05-04 Thread Rohit Pandey
() applied to non-(list or vector) of type 'NULL' 2: In is.na(x) : is.na() applied to non-(list or vector) of type 'NULL' Again, thanks for your patience and help. Rohit On Wed, May 4, 2011 at 4:44 AM, Andrew Robinson < a.robin...@ms.unimelb.edu.au> wrote: > I sugg

[R] help with the maxBHHH routine

2011-05-03 Thread Rohit Pandey
Hello R community, I have been using R's inbuilt maximum likelihood functions, for the different methods (NR, BFGS, etc). I have figured out how to use all of them except the maxBHHH function. This one is different from the others as it requires an observation level gradient. I am using the foll

[R] Fwd: The results of your email commands

2011-04-08 Thread Rohit Pandey
Hi R community, I posted a question on using the R maximum likelihood functions a short while ago and got an email saying that some of the content was "unprocessed". Hence, I am reposting the question just to be sure (sorry for the multiple emails if both reached you). My question is reagarding t

Re: [R] Questions on dividing lists and tapply

2011-03-16 Thread Rohit Pandey
Awesome,that worked! Thanks. On Wed, Mar 16, 2011 at 6:46 AM, Henrique Dallazuanna wrote: > Try this: > > mapply('/', l1, l2, SIMPLIFY = FALSE) > > and > > tapply(1:5, lapply(indxLi, as.numeric), sum) > > > On Tue, Mar 15, 2011 at 6:06 PM, Rohit Pa

[R] Questions on dividing lists and tapply

2011-03-15 Thread Rohit Pandey
Hello R community, I have two questions about using R. The first is about dividing each element of a list with another similar sized list. So, if the first list has two elements and so does the second, then the result should also be a list with two elements. For example, the inputs are: list(ma

[R] Mutiplying a data frame to a list

2011-02-21 Thread Rohit Pandey
Hi R community, I have a question I'm sure is very simple for most of you. I have a list, with each element being a matrix and the names of the elements are numbers (like 1,3,...). I can extract the matrices and the names individually. Now, I want to multiply each of the names to the individual l

Re: [R] [Rcpp-devel] Help with integrating R and c/c++

2011-02-19 Thread Rohit Pandey
asets tcltk methods base On Sat, Feb 19, 2011 at 9:21 PM, Douglas Bates wrote: > On Sat, Feb 19, 2011 at 12:56 AM, Rohit Pandey > wrote: > > Hi Christopher/ Dirk, > > > Thank you very much for your replys. I think the idea of using inline as > you > > sugges

Re: [R] [Rcpp-devel] Help with integrating R and c/c++

2011-02-19 Thread Rohit Pandey
chanics work. > > Aside from looking up the Rcpp::sugar functionality used in places above, > you might also want to look at package "RcppArmadillo", if functions and > calculations involve linear algebra calcs/matrix operations. Hopefully this > gives you some food-for-

[R] Help with integrating R and c/c++

2011-02-06 Thread Rohit Pandey
Hi, I have been using R for close to two years now and have grown quite comfortable with the language. I am presently trying to implement an optimization routine in R (Newton Rhapson). I have some R functions that calculate the gradient and hessian (pre requisite matrices) fairly efficiently. Now,