[R] function returning the name of an object

2009-05-20 Thread Antonio Gasparrini
like func(mymatrix) returning the string "mymatrix"? Thanks so much for your time. Antonio Gasparrini Public and Environmental Health Research Unit (PEHRU) London School of Hygiene & Tropical Medicine Keppel Street, London WC1E 7HT, UK Office: 0044 (0)20 79272406 - Mobi

[R] exponential distribution

2008-06-08 Thread Antonio Gasparrini
exp(X%*%b) b <- solve(t(X)%*%W%*%X) %*% (t(X)%*%W%*%z) iter[i,] <- b } summary(model1,dispersion=1)$coef summary(model2) iter[nrow(temp),] sqrt(diag(solve(t(X)%*%W%*%X))) ### Can you explain if this difference is due to an error? Thanks in advan

[R] periodic term

2008-02-27 Thread Antonio Gasparrini
r within a dataframe with several repetition of the month series along the years. Can you suggest some options or new commands? Thanks a lot Antonio Gasparrini Public and Environmental Health Research Unit (PEHRU) London School of Hygiene & Tropical Medicine Keppel Street, London WC1E 7H

[R] mle

2008-01-08 Thread Antonio Gasparrini
understand why it doesn't work. Have you some suggestions? Thank you so much for your help Antonio Gasparrini Public and Environmental Health Research Unit (PEHRU) London School of Hygiene & Tropical Medicine Keppel Street, London WC1E 7HT, UK Office: 0044 (0)20 79272406 Mobile: 0044 (

[R] index

2008-01-02 Thread Antonio Gasparrini
Dear all, I would like to know if it’s possible to create an index for a variable/vector that specifies the value in the n position before the actual value. For example, if X <- c(letters[1:10]), x[10] is “j”. I would like to create an index exp3 (the third position before) such as if z <- x[ex

[R] mle

2007-12-21 Thread Antonio Gasparrini
oblems with the offset and I don't understand some of the functions. Do you know where can I find some explicit tutorial about a poisson regression with MLE and/or about maximum likelihood estimation with R? Best wishes Antonio Gasparrini Public and Environmental Health Research Unit (PEH

[R] mle

2007-12-21 Thread Antonio Gasparrini
oblems with the offset and I don't understand some of the functions. Do you know where can I find some explicit tutorial about a poisson regression with MLE or, maybe better, about maximum likelyhood estimation? Best wishes Antonio Gasparrini Public and Environmental Health Research Unit (PEH

[R] mle

2007-12-19 Thread Antonio Gasparrini
oblems with the offset and I don't understand some of the functions. Do you know where can I find some explicit tutorial about a poisson regression with MLE or, maybe better, about maximum likelyhood estimation? Best wishes Antonio Gasparrini Public and Environmental Health Research Unit (PEH