Displaying 20 results from an estimated 7222 matches for "est".
Did you mean:
esp
2006 Apr 10
2
seq
Can someone, please, help explain to me why the following two calls
return the same set:
> seq(from=as.POSIXlt('2005-12-4'), to=as.POSIXlt('2006-4-2'), by='weeks')
[1] "2005-12-04 EST" "2005-12-11 EST" "2005-12-18 EST" "2005-12-25 EST"
[5] "2006-01-01 EST" "2006-01-08 EST" "2006-01-15 EST" "2006-01-22 EST"
[9] "2006-01-29 EST" "2006-02-05 EST" "2006-02-12 EST" "2006-02...
2009 Jan 23
2
Dates in Common
I have two collections of dates and I want to figure out what dates they have
in common. This is not giving me what I want (I don't know what it is giving
me). What is the best way to do this?
Tom
> data1
[1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-21 EDT"
[5] "1951-12-20 EST" "1953-01-22 EST" "1955-02-28 EST" "1956-03-08 EST"
[9] "1957-03-22 EST" "19...
2010 Oct 07
3
reshape from wide to long, ordering of "varying"
Hello,
I have data in the following form
age sex Int.Prev.Est.1 Int.Prev.Est.2 Int.Prev.Est.3
Int.Prev.Est.4 Int.Prev.Est.5
93110 93 0 23.75482 57.86592 9.755003
4.343534 4.280714
93610 93 1 53.36475 39.47247 4.381618
1.622119 1.159044
94110 94 0 23.47514 58.23936 10.789339
3.690415...
2005 Jun 07
5
Functions within functions in R and S-Plus
...ve tried to "translate" some code from R to S-Plus (I have colleague
that insists on using S-Plus. And yes, I have tried to make him change
to R...)
The following code works out fine in R, but in S-Plus (S-PLUS 6.2 for
Windows Professional Ed.) I get the error message "Problem in
est.theta(x): Object "func" not found ".
I have tried to keep most of the structure in my original problem (but
simplified it!), so the code could seem a bit strange.
I suspect that this has something to do with different scoping rules in
R and S-Plus, but still I have not found a work...
2008 May 16
2
How to swap and rearrange rows?
Dear R-expert,
How to swap and rearrange the row so that I will have
Jan-Dec in order?
> est31
??????????? p0 est.alpha est.beta? est.rate
Jan? 0.8802867 0.7321440 7.241757 0.1380880
Mar? 0.8598566 0.7096567 7.376367 0.1355681
May? 0.6204301 0.8657272 6.036106 0.1656697
July 0.5032258 0.9928488 4.027408 0.2482986
Aug? 0.5322581 0.9625738 4.103121 0.2437169
Oct? 0.6792115 0.8526226 5.105218...
2004 Dec 06
0
R doesn't understand dates prior to 1 Jan 1970
I'm installing R on an Irix 6.5 machine and R fails to understand dates
prior to 1 Jan 1970. This first cropped up early in the test scripts
(Examples/base-Ex.R):
> > seq(as.Date("1910/1/1"), as.Date("1999/1/1"), "years")
> Error in fromchar(x) : character string is not in a standard unambiguous format
The root there is the as.Date("1910/1/1"), which returns that same error
wh...
2012 Mar 07
4
problem with data
Good Afternoon,
?? I have a small problem with the following code.
# The x.sub$Time[[1]] 2006-10-31 19:03:01 EST
# when put in variable star give-me
star<-x.sub$Time[[1]]
print(star)
print(x.sub$Time[[1]])
[1] 1 36 32 -........
do not understand why
--
View this message in context: http://r.789695.n4.nabble.com/problem-with-data-tp4453510p4453510.html
Sent from the R help mailing list archive at...
2006 Nov 22
2
problems with garchFit
...t know where is most
appropriate for this topic. Sorry if it bothers you.
I did garch fitting on S&P500 monthly returns with garchFit from fSeries. I
got same coefficients from all cond.dist except normal. I thought that is
probabaly usual for the data. But when I play with it, I got another
question.
I plot skew normal with skew = 1 and a standard normal, they overlap
eachother, so I think they are the same. Skew = 1 means no skewness (I can
not find the paper defining the distribution).
library(fSeries)
curve(dsnorm(x, 0, 1, 1), -2, 2, add = F, col = 'red') #skew normal with
skew...
2010 May 28
2
problem with a function
Hi all,
I have a function rho.f which gives a list of estimators. I have the
following problems.
rho.f(0.3) gives me the right answer. However, if I use rho.f(corr[4]) give
me a different
answer, even though corr[4]==0.3.
This prevents me from using a for loop. Can someone give me some help?
Thank you very much in advance....
2011 Apr 03
1
style question
...sions)
berk0 <- glm(cbind(Admitted,Rejected)~1,data=berkeley,family="binomial")
berk1 <-
glm(cbind(Admitted,Rejected)~Gender,data=berkeley,family="binomial")
berk2 <-
glm(cbind(Admitted,Rejected)~Gender+Dept,data=berkeley,family="binomial")
setCoefTemplate(est.se=c(est = "($est:#)($se:#)"))
mtable(berk0,berk1,berk2,
+ coef.style="est.se",
+ summary.stats=c("Deviance","AIC","N"))
Error in dim(ans) <- newdims :
dims [product 1] do not match the length of object [2]
Thank you in advan...
2003 Aug 20
2
Method of L-BFGS-B of optim evaluate function outside of box constraints
...ys:
I'm using L-BFGS-B method of optim for minimization problem. My function
called besselI function which need non-negative parameter and the besselI
will overflow if the parameter is too large. So I set the constraint box
which is reasonable for my problem. But the point outside the box was
test, and I got error. My program and the error follows. This program
depends on CircStats package.
Anyone has any idea about this?
Thanks in advance.
Li
#################### source code ###################################
Dk2<- function(pars,theta)
{
kappa<- pars[1]; mu<- pars[2];
IoK...
2009 Mar 10
4
puzzled by math on date-time objects
...11:35:16 EDT"
mean(a)
[1] "2009-03-10 11:35:16 EDT"
But for real data (for this post, a short subset is in object c) that
I have converted into a POSIXct object, I cannot calculate the median
with median(), though I do get it with summary():
c
[1] "2009-02-24 14:51:18 EST" "2009-02-24 14:51:19 EST" "2009-02-24
14:51:19 EST"
[4] "2009-02-24 14:51:20 EST" "2009-02-24 14:51:20 EST" "2009-02-24
14:51:21 EST"
[7] "2009-02-24 14:51:21 EST" "2009-02-24 14:51:22 EST" "2009-02-24
14:51:...
2005 Oct 17
1
as.POSIXct before and after 1970
Can someone, please, explain the difference in as.POSIXct results
before 1970 and on and after 1970 as illustrated below.
After 1970, the use of 'EST' or "EST+5EDT' as the timezone does not
affect the result of asPOSIXct, but before 1970 on 10/28 the results
are different.
> as.POSIXct('1970-10-29', tz='EST')+1
[1] "1970-10-29 00:00:01 EST"
> as.POSIXct('1970-10-29', tz='EST+5EDT')+1...
2012 Feb 05
1
Grouping miliseconds By Hours
I have a list of numbers corresponding to timestamps, a sample of which follows:
c(1327211358, 1327221999, 1327527296, 1327555433, 1327701042,
1327761389, 1327780993, 1327815670, 1327822964, 1327897497, 1327897527,
1327937072, 1327938300, 1327957589, 1328044466, 1328127921, 1328157588,
1328213951, 1328236836, 1328300276, 1328335936, 1328429102)...
2006 Jun 20
1
Help with dimnames()
Hi R people:
I'm trying to set the dimnames of a data frame called "ests" and am
having trouble!
First, I check to see if "ests" is a data.frame...
> is.data.frame( ests )
[1] TRUE
... and it is a data frame!
Next, I try to assign dimnames to that data frame....
> dimnames( ests )[[ 1 ]] <- as.character( ests$stfips )
Error in "row.na...
2011 Sep 12
1
as.POSIXct on vector weird output
...48
10 Levels: 09/11/2011 13:23:48 09/11/2011 13:24:40 ... 09/11/2011 13:46:39
> z
[1] "09/11/2011 13:46:39"
> as.POSIXct(z, format="%m/%d/%Y %H:%M:%S")
[1] "2011-09-11 13:46:39 EDT"
> as.POSIXct(f$V1, format="%m/%d/%Y %H:%M:%S")
[1] "0009-11-20 EST" "0009-11-20 EST" "0009-11-20 EST" "0009-11-20 EST"
[5] "0009-11-20 EST" "0009-11-20 EST" "0009-11-20 EST" "0009-11-20 EST"
[9] "0009-11-20 EST" "0009-11-20 EST"
---------
R version 2.12.2 (2011-02-25)...
2010 Mar 20
1
POSIXct conversion stops part way through a df column
...7:03
11/13/2008 7:05
11/13/2008 7:11
I want to convert the column to POSIXct
oooi$dpt <- as.POSIXct(oooi$ActualOnLocal, tz="", format="%m/%d/%Y %H:%M")
It works for the first 3099 rows. But after that all the rows come out
as NA:
> oooi$dpt
.....
[3089] "0011-12-20 EST" "0011-12-20 EST" "0011-12-20 EST" "0011-12-20 EST"
[3093] "0011-12-20 EST" "0011-12-20 EST" "0011-12-20 EST" "0011-12-20 EST"
[3097] "0011-12-20 EST" "0011-12-20 EST" "0011-12-20 EST" NA...
2019 Sep 24
2
VI Xornada de Usuarios de R en Galicia [10/10/2019]
Hola.
Por si fuera de vuestro inter?s, os informo de que ya est? disponible el Programa de la Jornada de usuarios de R en Galicia.
Pod?is consultarlo aqu? -> https://www.r-users.gal/Programa%202019
Tendr? lugar, el jueves 10 de octubre, en la Facultad de Matem?ticas de la Universidad de Santiago de Compostela.
Un sal...
2009 Aug 20
1
Understanding R code
What is
1. par.ests <- optimfit$par
2. fisher <- hessb(negloglik, par.ests, maxvalue=maxima);
3. varcov <- solve(fisher);
4. par.ses <- sqrt(diag(varcov));
Thanks a lot,
fit.GEV <- function(maxima)
{
sigma0 <- sqrt((6. * var(maxima))/pi)
mu0 <- mean(maxima) - 0.57722 * sigma0
xi0 <- 0.1
thet...
2009 Dec 22
1
as.Date function yields inconsistent results (PR#14166)
Full_Name: Mario Luoni
Version: 2.10.0
OS: Windows XP HE SP3
Submission from: (NULL) (217.194.59.134)
This piece of code:
zzz1 <- as.POSIXct("1999-03-18", tz="CET")
zzz2 <- as.POSIXlt("1999-03-18", tz="CET")
zzz1 == zzz2
as.Date(zzz1)
as.Date(zzz2)
yields TRUE for "zzz1==zzz2", but the two dates returned by as.Date are
different:
>