Error in RBloomberg

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in RBloomberg

Sumanta Basak
Hello R-Experts,

 

Currently I'm using "RBloomberg" package in R-2.2.1 in Windows machine (
XP). When I'm running one specific example using blpGetData given in
help file I'm getting the following error message.

 

conn <- blpConnect()

 

edb <- blpGetData(conn, "ED1 Comdty", "PX_LAST",

     start=chron("1/1/06"), end=chron("1/31/06"))

 

The error message: Error in any (origin(chronDate) != orig) : couldn't
find function "origin".

 

 

Any help regarding this is appreciated in advance.

 

Thanks,

 

Sumanta Basak.


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

testing factor effects in glm

I.Szentirmai
Dear All,

I'm using a glm to analyse the effect of year on a
variable with poisson distribution. Using the summary() I
can test whether years are different from each other, but
how can I test whether year has an overall effect on my
respons variable? My guess is that by a Wald-test, but I
don't know how exactly.

Could someone give me advice?

Many thanks,
Istvan

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: testing factor effects in glm

Thomas Lumley
On Wed, 22 Feb 2006, I.Szentirmai wrote:

> Dear All,
>
> I'm using a glm to analyse the effect of year on a
> variable with poisson distribution. Using the summary() I
> can test whether years are different from each other, but
> how can I test whether year has an overall effect on my
> respons variable? My guess is that by a Wald-test, but I
> don't know how exactly.
>

You can get a likelihood ratio test by also fitting a model without year
and using anova() to compare the two models.

I think multiple people have written wald test functions. Mine is
regTermTest in the "survey" package.

  -thomas

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: testing factor effects in glm

Fox, John
Dear Istvan,

You might want to take a look at the Anova() and linear.hypothesis()
functions in the car package.

Regards,
 John

 
 On Wed, 22 Feb 2006, I.Szentirmai wrote:
 
> Dear All,
>
> I'm using a glm to analyse the effect of year on a
> variable with poisson distribution. Using the summary() I
> can test whether years are different from each other, but
> how can I test whether year has an overall effect on my
> respons variable? My guess is that by a Wald-test, but I
> don't know how exactly.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Error In RBloomberg

Samik Sen
In reply to this post by Sumanta Basak
Hello R-Expert,


 Recently I was using "RBloomberg" package in R-2.2.0 in Windows (XP)
machine installing the required packages. I checked one example using
blpGetData guided in corresponding help file:


conn <- blpConnect()

edb <- blpGetData(conn, "ED1 Comdty", "PX_LAST", start=chron("1/1/06"),
end=chron("1/31/06"))

 

I got error message as following:

The error message: Error in any (origin (chronDate)! = orig): couldn't
find function "origin".



Then I installed package "calibrate". I tried the same example ignoring
"start=chron("1/1/01")" and end=chron("1/31/06").The result was:

 

ED1 Comdty   PX_LAST

95.1125

But when I tried the same with "start=chron("1/1/01")" installing the
package "calibrate". I got followings catching edb:

 

 

ED1                             Comdty           PX_LAST

(02/23/06 17:53:57)                            NA

 

 


I want to get all values of PX_LAST within 1/1/01 and 1/31/06 instead of
getting NA on the date I am working.Any help regarding this is
appreciated in advance.



Thanks,


Samik Sen





        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Error In RBloomberg

Prof Brian Ripley
Someone else at the same domain sent this earlier this week, so please do
check before posting.  See

https://stat.ethz.ch/pipermail/r-help/2006-February/087382.html
(which is not complete in the archive, but arrived here).

Problems in packages should be reported to the maintainer.  In this case
my guess is that the package needs updating as origin() is an unexported
function from package chron.  Using another package with an unrelated
function origin() just causes errors, and is what namespaces are designed
to avoid.

Note that packages which are Windows-only (and in this case depend on a
non-CRAN package) do not get tested in the daily testing.

On Fri, 24 Feb 2006, Samik Sen wrote:

> Hello R-Expert,
>
>
> Recently I was using "RBloomberg" package in R-2.2.0 in Windows (XP)
> machine installing the required packages. I checked one example using
> blpGetData guided in corresponding help file:
>
>
> conn <- blpConnect()
>
> edb <- blpGetData(conn, "ED1 Comdty", "PX_LAST", start=chron("1/1/06"),
> end=chron("1/31/06"))
>
>
>
> I got error message as following:
>
> The error message: Error in any (origin (chronDate)! = orig): couldn't
> find function "origin".
>
>
>
> Then I installed package "calibrate". I tried the same example ignoring
> "start=chron("1/1/01")" and end=chron("1/31/06").The result was:
>
>
>
> ED1 Comdty   PX_LAST
>
> 95.1125
>
> But when I tried the same with "start=chron("1/1/01")" installing the
> package "calibrate". I got followings catching edb:
>
>
>
>
>
> ED1                             Comdty           PX_LAST
>
> (02/23/06 17:53:57)                            NA
>
>
>
>
>
>
> I want to get all values of PX_LAST within 1/1/01 and 1/31/06 instead of
> getting NA on the date I am working.Any help regarding this is
> appreciated in advance.
>
>
>
> Thanks,
>
>
> Samik Sen
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

--
Brian D. Ripley,                  [hidden email]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html