Re: [R] multiple break in univariate series

2015-03-28 Thread Bert Gunter
Once you have looked at the data and chosen change points to test based on the data, the tests for change points are invalid (unless you make appropriate adjustments for post hoc tests). And no, I am not making this up. Consult any competent statistician. Cheers, Bert Bert Gunter Genentech N

Re: [R] multiple break in univariate series

2015-03-28 Thread Uwe Ligges
On 29.03.2015 00:09, Temel İspanyolca wrote: DR. UWE LIGGES I have sent turkish real Gdp data (1998-2013) in annex. Turkey has lived two crises in this period, in 2001 and 2008. You can see in data. My problem is to indicate these dates any statistic test as a structural change or point

Re: [R] hash - extract key values

2015-03-28 Thread William Dunlap
What part of the following does not work as expected? > z <- hash(keys=letters[1:5], values=lapply(1:5,seq_len)) > keys(z) [1] "a" "b" "c" "d" "e" > z$b [1] 1 2 Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Mar 28, 2015 at 4:45 PM, Brian Smith wrote: > Hi William, > > Tha

Re: [R] hash - extract key values

2015-03-28 Thread Brian Smith
Hi William, That's the point - the 'keys()' doesn't seem to work.. On Sat, Mar 28, 2015 at 7:36 PM, William Dunlap wrote: > Try using the plural 'keys' instead of 'key' (as help(hash) says): >yourhash <- hash(keys=letters, values=1:26) > Then there will be 26 items in the hash table and ke

Re: [R] hash - extract key values

2015-03-28 Thread William Dunlap
Try using the plural 'keys' instead of 'key' (as help(hash) says): yourhash <- hash(keys=letters, values=1:26) Then there will be 26 items in the hash table and keys(yourhash) will return the 26 lowercase letters. Is that what you want? Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Mar

Re: [R] multiple break in univariate series

2015-03-28 Thread Uwe Ligges
Forwarded Message Subject: [R] multiple break in univariate series Date: Sat, 28 Mar 2015 00:41:35 +0100 From: Temel İspanyolca To: R-help@r-project.org Hello Any one knows multiple break test for univariate series ? Which kind of breaks? shift? You may want to look for CUS

Re: [R] hash - extract key values

2015-03-28 Thread Brian Smith
I deleted the 'hash' directory and re-installed (several times!) it, but it is still wierd.. > sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats

Re: [R] vif in package car: there are aliased coefficients in the model

2015-03-28 Thread John Fox
Dear Rodolfo, Sending the data helps, though if you had done what I suggested, you would have seen what's going on: snip -- > dim(data) [1] 8 8 > summary(lm(response_variable ~ predictor_1 + predictor_2 + predictor_3 + > predictor_4 + + predic

Re: [R] Error in lm() with very small (close to zero) regressor

2015-03-28 Thread Ben Bolker
peter dalgaard gmail.com> writes: > > > > On 28 Mar 2015, at 00:32 , RiGui business.uzh.ch> wrote: > > > > Hello everybody, > > > > I have encountered the following problem with lm(): > > > > When running lm() with a regressor close to zero - > of the order e-10, the > > value of the estim

Re: [R] Error in lm() with very small (close to zero) regressor

2015-03-28 Thread peter dalgaard
> On 28 Mar 2015, at 00:32 , RiGui wrote: > > Hello everybody, > > I have encountered the following problem with lm(): > > When running lm() with a regressor close to zero - of the order e-10, the > value of the estimate is of huge absolute value , of order millions. > > However, if I write

Re: [R] cannot load midasr package

2015-03-28 Thread Jeff Newmiller
Have you read the error message? Can you load the other packages being complained about? Have you read and considered using the information supplied by "?maintainer" ? --- Jeff NewmillerThe .

[R] Error in lm() with very small (close to zero) regressor

2015-03-28 Thread RiGui
Hello everybody, I have encountered the following problem with lm(): When running lm() with a regressor close to zero - of the order e-10, the value of the estimate is of huge absolute value , of order millions. However, if I write the formula of the OLS estimator, in matrix notation: pseudoinv

[R] multiple break in univariate series

2015-03-28 Thread Temel İspanyolca
Hello Any one knows multiple break test for univariate series ? -- *Thanks* Engin YILMAZ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

[R] cannot load midasr package

2015-03-28 Thread T.Riedle
Dear Sirs, I am trying to implement the MIDAS regression but I cannot load the midasr package. When I load the package I get following message: > library(midasr) Loading required package: sandwich Loading required package: optimx Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI

[R] creating matrix row by row

2015-03-28 Thread Ragia Ibrahim
Hi, I have a original adjacency matrix n X n , and I want to connect certain row with a set of other selected columns (could be not the same as in the original matrix). this in each iteration I have a new row of this connections matrix , how to create this matrix. having original row nu

Re: [R] hash - extract key values

2015-03-28 Thread Uwe Ligges
Try to reinstall hash. Sounds like a broken installation. Best, Uwe Ligges On 28.03.2015 07:03, Brian Smith wrote: Exactly. Used to work for me, but not anymore. I tried restarting session, installing the most recent package of 'hash' etc. Here is my sessionInfo(): sessionInfo() R version

Re: [R] Using and abusing %>% (was Re: Why can't I access this type?)

2015-03-28 Thread Patrick Connolly
On Fri, 27-Mar-2015 at 03:27PM +0100, Henric Winell wrote: |> On 2015-03-26 07:48, Patrick Connolly wrote: |> |> >On Wed, 25-Mar-2015 at 03:14PM +0100, Henric Winell wrote: |> > |> >... |> > |> >|> Well... Opinions may perhaps differ, but apart from '%>%' being |> >|> butt-ugly it's also fairly