[R] Packages for Nonlinear ARIMA Estimation

2019-09-04 Thread Michael Howell
Hello, I am looking for an R package that uses nonlinear least squares to fit ARIMA models. Initially I was using tseries but according to the documentation for the Arima function in tseries: *The exact likelihood is computed via a state-space representation of the ARIMA process, and the

Re: [R] creating a line plot for time series data for several years

2019-09-04 Thread Rui Barradas
Hello, Thanks for the reproducible example. All you have to do is to use the aesthetic group = year in either ggplot() or geom_line(). This works: library(ggplot2) daT$date <- as.Date(daT$date) daT$DATE <- format(daT$date, format="%m/%d") Ab <- ggplot(daT, aes(x = as.factor(DATE),

Re: [R] [effects] allEffects does not accept integer value for xlevels

2019-09-04 Thread Fox, John
Dear Rolf, Thanks for trying to help. The bug wasn't in AnalyzeModel(). There was a bug in Effect.lm(), Effect.multinom(), and Effect.polr() in how xlevels=n (e.g., xlevels=4) was handled, now fixed in the development version of the effects package on R-Forge, from which it can be installed

[R-es] Dibujar un triángulo dadas la distancias de los segmentos.

2019-09-04 Thread Juan Abasolo
Buenas, compañeros; Quiero buscar a ver si una idea (ocurrencia?) que tuve tiene sentido, para eso nencesito ver las representaciones gráficas de unos triángulos de los que no sé (ni me importa) la posición, pero sí sé las distancias entre los tres puntos. triangulo.con.lados <- c(47, 45, 55)

Re: [R] [effects] allEffects does not accept integer value for xlevels

2019-09-04 Thread Rolf Turner
I'm obviously not understanding something here, but it seems to me that the conjecture It appears to me that the cause is buried in effects:::Analyze.model in or close to the the lines if (is.numeric(xlevels) & length(xlevels) == 1L) { levs <- xlevels for (name in

Re: [R] Change Y-axis labels

2019-09-04 Thread David Winsemius
On 9/4/19 7:35 AM, Medic wrote: The Y scale is divided (by default) as: 0.0 ... 0.2 ... 0.4 ... 0.6 ... 0.8 ...1.0 But I would like so: 0 ... 20 ... 40 ... 60 ... 80... 100 (with rotating axis labels) When I use par function (marked as comment here) it turns out correctly for ONLY ONE

[R] creating a line plot for time series data for several years

2019-09-04 Thread Marna Wagley
Hi R Users, I have been getting a trouble to create a time series plot (line) as I was trying to create a line graph for each year using month and date (in x axis). I would like to put only one x axis (month and date) for three years using the facet_grid, but it has not been creating a lineplot

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Aqui estan en formato csv, Antonio On Wed, 4 Sep 2019 at 19:19, Carlos Ortega wrote: > ¿Puedes compartir los datos?... > No veo otra forma... > > El mié., 4 sept. 2019 a las 18:54, Antonio Rodriguez Andres (< > antoniorodriguezandre...@gmail.com>) escribió: > >> No me sale error pero no me

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Carlos Ortega
¿Puedes compartir los datos?... No veo otra forma... El mié., 4 sept. 2019 a las 18:54, Antonio Rodriguez Andres (< antoniorodriguezandre...@gmail.com>) escribió: > No me sale error pero no me imprime la linea, ni ningun gráfico por pais. > > On Wed, 4 Sep 2019 at 18:42, neo wrote: > >> podría

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
No me sale error pero no me imprime la linea, ni ningun gráfico por pais. On Wed, 4 Sep 2019 at 18:42, neo wrote: > podría ser el problema el tipo de dato en X y el tipo de gráfico que > intentas hacer ? > > si Year es entero y estas pidiendo que el gráfico sea tipo "I", podría > ser que quizá

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread neo
podría ser el problema el tipo de dato en X y el tipo de gráfico que intentas hacer ? si Year es entero y estas pidiendo que el gráfico sea tipo "I", podría ser que quizá eso te produce el error ? si pruebas a cambiar X a numérico (continuo) ? Slds, Eric. On 04-09-19 13:06, Antonio

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Lo que obtengo es dim(currcty) = NULL lo que hice es crear una lista de paises countrylist <- unique(length(eco_freedom2$Countries) Los datos son de esta forma head(eco_freedom2, 5) Year ISO_Code Countries SUMMARY.INDEX X1..Size.of.Government 641 2000 AGOAngolaNA

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Gracias lo miro El mié., 4 sept. 2019 16:53, Carlos Ortega escribió: > ¿Puedes compartir los datos?.. > > Otra cosa que puede ayudar es esto lo destaco en rojo. > Creo que en alguno de los casos te quedas sin datos en tu data.frame. > > Con ese mensaje puedes ver justamente el tamaño de cada

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Carlos Ortega
¿Puedes compartir los datos?.. Otra cosa que puede ayudar es esto lo destaco en rojo. Creo que en alguno de los casos te quedas sin datos en tu data.frame. Con ese mensaje puedes ver justamente el tamaño de cada dataframe en cada iteración. for (i in 1:length(countrylist)){ currcty <-

[R] Change Y-axis labels

2019-09-04 Thread Medic
The Y scale is divided (by default) as: 0.0 ... 0.2 ... 0.4 ... 0.6 ... 0.8 ...1.0 But I would like so: 0 ... 20 ... 40 ... 60 ... 80... 100 (with rotating axis labels) When I use par function (marked as comment here) it turns out correctly for ONLY ONE picture?! Help me, please. (This is the code

Re: [R] [effects] allEffects does not accept integer value for xlevels

2019-09-04 Thread Fox, John
Dear Gerrit, Yes, that appears to be a bug in Effect() -- too bad that it wasn't discovered earlier because a new version of the package was submitted yesterday, but thank you for the bug report. We'll fix the bug, but until then a work-around is to specify the number of levels for each

[R] [effects] allEffects does not accept integer value for xlevels

2019-09-04 Thread Gerrit Eichner
Dear list, citing from allEffects' help page (of package effects 4.1-2): "If xlevels=n is an integer, then each numeric predictor is represented by n equally spaced values rounded to 'nice' numbers." However, adapting the first example from allEffects' help page throws an an error:

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Carlos Al especificar los limites, no me sale ningun error, aunque no consigue graficar, nada, # Look at the time series for each country for the time period, for instance GDPPC for (i in 1:length(countrylist)){ currcty <- countrylist[i] filename <-

Re: [R] Durbin- Levinson algorithm

2019-09-04 Thread Stephen Ellison
Google "levionson-Durbin in R The first reference is the levinson function in the signal package. > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Faheem > Jan via R-help > Sent: 04 September 2019 11:29 > To: R-help Mailing List > Subject: [R]

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Ok gracias On Wed, 4 Sep 2019 at 11:57, Carlos Ortega wrote: > Hola, > > Pon un "print(i)" en tu bucle para ver en qué número/paso del bucle te > aparece el error. > Y con ese "i" haz la selección del dataframe y mira que pasa.. puede que > para ese caso, al quitar los NAs te quedes sin

[R] Durbin- Levinson algorithm

2019-09-04 Thread Faheem Jan via R-help
hi, i have a problem that how i could use Durbin- levinson algorithm for prediction in case of multiple time series? how i could do this in R... [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] Functional final prediction error

2019-09-04 Thread Faheem Jan via R-help
Hi, my question is related functional data analysis, what is functional final prediction error how we can use to transform vector autoregressive model to its functional form...need help in this regard i will be thanks ful.. [[alternative HTML version deleted]]

Re: [R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Carlos Ortega
Hola, Pon un "print(i)" en tu bucle para ver en qué número/paso del bucle te aparece el error. Y con ese "i" haz la selección del dataframe y mira que pasa.. puede que para ese caso, al quitar los NAs te quedes sin datos... Es una forma de debugear... Gracias, Carlos Ortega

Re: [R] Efficient way to update a survival model

2019-09-04 Thread Frank S .
Chris, thank you so much for your answer!! Best, Frank S. De: Andrews, Chris Enviado: martes, 3 de septiembre de 2019 14:14 Para: Frank S. Cc: r-help@r-project.org Asunto: Re: [R] Efficient way to update a survival model library("survival") set.seed(1) v <-

Re: [R] Efficient way to update a survival model

2019-09-04 Thread Frank S .
Charles, thank you for your suggestion! Frank S. De: Berry, Charles Enviado: s�bado, 31 de agosto de 2019 19:21 Para: Frank S. Cc: Andrews, Chris ; r-help@r-project.org Asunto: Re: Efficient way to update a survival model The i^th model is included in the

[R-es] Plot. window error- Usando R base. Gráfico

2019-09-04 Thread Antonio Rodriguez Andres
Hola queridos usuarios de R Estoy intentando hacer un gráfico de una variable en el tiempo para un conjunto de países usando R base, con el comando plot. Tengo 40 países y son 15 años. Lo quiero salvar como formato png, cada uno de ellos. Tengo el siguiente código, for (i in