[R] Issue when reading a table into R

2013-03-06 Thread Paul Bernal
Hello everyone, I was reading a table into R, and when trying to retrieve it the following message appeared: [ reached getOption(max.print) -- omitted 469376 rows ] Does this mean that R left out 469376 rows? Or R is taking those 469376 rows as well and the limitation is only for printing

Re: [R] Updating R 2.15.0 to 2.15.2

2012-10-26 Thread Paul Bernal
is that, as far as CRAN packages are concerned, re-installing them on Windows should be relatively fast (as long as you have fast access to a CRAN mirror) because installing binary packages is fast. Cheers, H. On 10/26/2012 12:35 PM, Paul Bernal wrote: Hello Hervé, Im using Windows, Best regards

[R] Excel Regression Function

2012-11-07 Thread Paul Bernal
Dear Frauke, good afternoon, Could you tell me which excel function didnt work for regression analysis and what excel version where you using? Best regards, Paul El 07/11/2012 11:55, frauke fh...@andrew.cmu.edu escribió: Hi David, hi Rui, thanks for your quick replies. I have replicated

[R] Forecast Package in R version 3.1.0

2014-04-28 Thread Paul Bernal
Dear R community, hello, Hope everybody is doing great. I just downloaded R version 3.1.0, and, whenever I try to load the forecast package, the following error message appears: Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘Rcpp’

Re: [R] Forecast Package in R version 3.1.0

2014-04-28 Thread Paul Bernal
GMT-05:00 Duncan Murdoch murdoch.dun...@gmail.com: On 28/04/2014 11:22 AM, Paul Bernal wrote: Dear R community, hello, Hope everybody is doing great. I just downloaded R version 3.1.0, and, whenever I try to load the forecast package, the following error message appears: Error

[R] Distribution Fitting with R

2013-08-05 Thread Paul Bernal
Hello everyone, Basically, I want to perform some distribution fitting analysis to a particular data that I have. So the data I will be working with is structured as follows: *Vessel Size* * Number of Vessels* *Frequency* 1000-2000 TEUS

Re: [R] Distribution Fitting with R

2013-08-05 Thread Paul Bernal
fitting analysis. Cheers, Bert On Mon, Aug 5, 2013 at 10:55 AM, Paul Bernal paulberna...@gmail.com wrote: Hello everyone, Basically, I want to perform some distribution fitting analysis to a particular data that I have. So the data I will be working with is structured as follows

Re: [R] R help: My calculation is different than the one in R with ARIMA(2, 3, 0) model

2013-08-05 Thread Paul Bernal
Dear Salaam, In your ARIMA (2,3,0), you are telling R you are saying that the order of differencing is 3. Have you chequed that you actually differenced the series with d = 3? Regards, 2013/8/5 Salaam Batur swordligh...@gmail.com Dear R users, I picked up ARIMA(2,3,0) model for my time

Re: [R] First time r user

2013-08-18 Thread Paul Bernal
El 18/08/2013 02:35, Steve Lianoglou lianoglou.st...@gene.com escribió: Hi Paul, First: please keep your replies on list (use reply-all when replying to R-help lists) so that others can help but also the lists can be used as a resource for others. Now: On Aug 18, 2013, at 12:20 AM, Paul

Re: [R] First time r user

2013-08-18 Thread Paul Bernal
Thank you so much Steve. The computer I'm currently working with is a 32 bit windows 7 OS. And RAM is only 4GB so I guess thats a big limitation. El 18/08/2013 03:11, Steve Lianoglou lianoglou.st...@gene.com escribió: Hi Paul, On Sun, Aug 18, 2013 at 12:56 AM, Paul Bernal paulberna

Re: [R] Fitting Arima Models and Forecasting Using Daily Historical Data

2013-09-09 Thread Paul Bernal
Dear Mr. Brian, What is the ISO 8601 standard for dates? Excuse my ignorance and best regards, Paul El 09/09/2013 16:41, Prof Brian Ripley rip...@stats.ox.ac.uk escribió: On 09/09/2013 20:36, Paul Bernal wrote: Hello everyone, I was trying to fit an arima model to a daily historical data

[R] Fitting Arima Models and Forecasting Using Daily Historical Data

2013-09-09 Thread Paul Bernal
Hello everyone, I was trying to fit an arima model to a daily historical data, but, for some reason, havent been able to. I basically have 212 observations (from 12/1/2012 to 06/30/2013) containing the number of transits for a particular vessel. The following messages are produced by R:

[R] Fitting Arima Model to Daily Time Series

2013-09-10 Thread Paul Bernal
Hello everyone, Hope everyone is doing great. I would like to know how to use the arima function in R to fit arima or arma models to daily data, that is, with period = 365, this taking into account the fact that I have 5 years worth of daily data (so 365 * 5 = my number of observations). All I

[R] Is R able to fit and forecast arima models using daily time series?

2013-09-16 Thread Paul Bernal
Hello everyone, I have been struggling quite a bit with R whenever I try to fit ARMA or ARIMA models and produce forecasts for datasets containing daily observations. Can somebody tell me whether R can handle daily time series or not? I have the impresion that R cannot fit nor produce forecasts

[R] Error when using fitdist function in R

2013-04-09 Thread Paul Bernal
Hello everyone, I was trying to do some distribution fitting with a numerical field called Tolls. The sample size = 999 rows. Basically I assigned the Toll data to a new variable K by doing: k-dtest$Toll After that, tried to fit a gamma distribution by doing: fitG-fitdist(k, gamma) Then the

Re: [R] Error when using fitdist function in R

2013-04-09 Thread Paul Bernal
Hello everyone, I was trying to do some distribution fitting with a numerical field called Tolls. The sample size = 999 rows. Basically I assigned the Toll data to a new variable K by doing: k-dtest$Toll After that, tried to fit a gamma distribution by doing: fitG-fitdist(k, gamma)

Re: [R] Error when using fitdist function in R

2013-04-10 Thread Paul Bernal
-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Paul Bernal Sent: Tuesday, April 09, 2013 11:19 PM To: r-help@r-project.org Subject: [R] Error when using fitdist function in R Hello everyone, I was trying to do some distribution fitting with a numerical field called

Re: [R] Error when using fitdist function in R

2013-04-10 Thread Paul Bernal
Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Paul Bernal Sent: Tuesday, April 09, 2013 11:19 PM To: r-help@r-project.org Subject: [R] Error when using fitdist function in R Hello everyone, I was trying to do some distribution fitting

[R] How to Export an R outcome to an Excel Spreadsheet

2012-05-01 Thread Paul Bernal
Hello R community, I basically created a normal distribution with mean 2500 and standard deviation = 450 with a sample of size 50 and assigned that to a variable named genvar2 with the following command: genvar2-rnorm(mean=2500, sd=450, n=50) Now, the output of genvar2 generates de following:

[R] Trouble with function nnetar

2014-07-29 Thread Paul Bernal
I was playing around with the nnetar function in the forecast package, trying to generate a 3-year forecast (36 months), the R fit result is shown below: #Neural Nets Fitting and Forecast fit-nnetar(condataset$ConPcums97) fit Series: condataset$ConPcums97 Model: NNAR(13) Call: nnetar(x =

[R] R Arimax Function

2014-12-03 Thread Paul Bernal
Hello everyone, I am just trying to understand how the Arimax function works, so my questions are: 1. If I have a univariate time series of sales and sales are dependent upon, say inflation rates, then my xreg would be inflation rates right? 2. Now is I have historial data on sales (from

Re: [R] R Arimax Function

2014-12-03 Thread Paul Bernal
it, I'll send it. http://stats.stackexchange.com/questions/6469/simple-linear-model-with-autocorrelated-errors-in-r On Wed, Dec 3, 2014 at 11:12 PM, Paul Bernal paulberna...@gmail.com wrote: Hello everyone, I am just trying to understand how the Arimax function works, so my questions are: 1

[R] Generating Web Service for R Time Series Model in Microsoft Machine Learning Studio

2017-02-23 Thread Paul Bernal
Dear all, I just created an R script to generate forecasts in Microsoft Azure Machine Learning Studio, however, I want to create a web service for this model. Does anybody has any idea of how to do it? I have been searching in the web, but haven´t found anything yet. Any help will be greatly

[R] Fitting arima Models with Exogenous Variables

2017-01-20 Thread Paul Bernal
Dear friends, I have 5 exogenous variables which I´d like to incorporate into my auto.arima model. I was able to incorporate the xreg, and I understand that newxreg should be the forecast of my exogenous variables, but I have not been able to get it to work. Newxreg should only have one column?

[R] Forecast Modeling using R model node in SPSS Modeler

2016-12-05 Thread Paul Bernal
Hello everyone, I have been trying really hard to use the SPSS Modeler´s R modeling node to generate forecasts without success. I personally think the R integration in SPSS Modeler is kind of poor, since you are only allowed to work with R version 2.15.2. Is there anyone who has worked time

[R] R Integration with SPSS Modeler

2016-12-02 Thread Paul Bernal
Hello everyone, I have installed R version 3.3.2 (64 bit) but SPSS Modeler (version 16.0) requires R version 2.15.2 (which is obviously pretty old). Would it cause any problem if I have two different R versions installed in my computer? Can I have both versions 3.3.2 and 2.15.2? Any

Re: [R] Forecast Modeling using R model node in SPSS Modeler

2016-12-06 Thread Paul Bernal
h R is easier than ever thanks to the growing number of tutorials, > workshops, mailing lists and forums. > > Best, > Ista > > On Mon, Dec 5, 2016 at 4:09 PM, Paul Bernal <paulberna...@gmail.com> > wrote: > > Hello everyone, > > > > I have be

[R] IRkernel Installation Issues

2017-01-05 Thread Paul Bernal
Hello everyone, I tried to get the IRkernel going doing the following: install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest')) then taking care of proxy settings by doing: library(devtools) library(httr)

Re: [R] Problem with IRkernel Installation Solved - Instructions on how to Solve it

2017-01-06 Thread Paul Bernal
ri, Jan 6, 2017 at 8:43 AM, Paul Bernal <paulberna...@gmail.com> > wrote: > > Dear friends, > > > > Great news! I was able to install the IRkernel successfully and I am now > > able to create R notebooks in Jupyter. > > Congratulations. > > Just in case a

Re: [R] [Rd] Problems when trying to install and load package "rzmq"

2017-01-03 Thread Paul Bernal
a binary package, and it is also >> quite possible that the package author is not a Windows person. >> >> At the very least, you'll need some familiarity with the Windows >> toolchain and be prepared to apply a fair amount of elbow grease. >> >> -pd >> >>

Re: [R] Problems when trying to install and load package "rzmq"

2017-01-03 Thread Paul Bernal
tall.packages("rzmq") > > > > > > > -- > *De:* R-help <r-help-boun...@r-project.org> em nome de Paul Bernal < > paulberna...@gmail.com> > *Enviado:* quinta-feira, 29 de dezembro de 2016 20:23 > *Para:* r-help@

[R] How to check R kernel (IRkernel) version used in Jupyter

2017-01-03 Thread Paul Bernal
Dear friends, I would like to know how can I do to check which IRkernel version I am currently using? Thanks beforehand for any valuable information you can share, Best regards, Paul [[alternative HTML version deleted]] __

[R] Error when trying to install rzmq continued

2017-01-03 Thread Paul Bernal
Dear friends, Thanks to all of you who took a a time to try to guide me. I get this error message. > install_github('armstrtw/rzmq') Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Couldn't connect to server Any other way to work this out? My final goal is to get Jupyter to

[R] Problems when trying to install and load package "rzmq"

2016-12-29 Thread Paul Bernal
After connecting to a mirror, I typed the following command: install.packages("rzqm") but I received the following message: ERROR: compilation failed for package 'rzmq' removing 'E:/Documents/R/win-library/3.3/rzmq' package which is only available in source form, and may need compilation of

Re: [R] Problems when trying to install and load package "rzmq"

2016-12-29 Thread Paul Bernal
ements [1]. I don't think you can do this on windows. > > [1] https://cran.r-project.org/web/packages/rzmq/index.html > -- > Sent from my phone. Please excuse my brevity. > > On December 29, 2016 12:23:26 PM PST, Paul Bernal <paulberna...@gmail.com> > wrote: >

Re: [R] Problems when trying to install and load package "rzmq"

2017-01-03 Thread Paul Bernal
Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paul > > Bernal > > Sent: Tuesday, January 3, 2017 1:51 PM > > To: Paulo Moniz <pmon...@hotmail.com> > > Cc: r-help@r-project.org > > Subject: Re: [R] Proble

[R] Problem with IRkernel Installation Solved - Instructions on how to Solve it

2017-01-06 Thread Paul Bernal
Dear friends, Great news! I was able to install the IRkernel successfully and I am now able to create R notebooks in Jupyter. Just in case anybody out there is struggling with this too, here is what I did (I have Windows 8, but it will probably work for Mac OS X as well): 1-Go to the page

Re: [R] IRkernel Installation Issues

2017-01-06 Thread Paul Bernal
ernel::installspec() If you follow this instructions you should be able to install the IRkernel successfully and start writing R notebooks in Jupyter. Hope this helps, Paul 2017-01-05 16:12 GMT-05:00 David Winsemius <dwinsem...@comcast.net>: > > > On Jan 5, 2017, at 11:16

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-28 Thread Paul Bernal
rk Sharp, Ph.D. > msh...@txbiomed.org > > > > > > > On Mar 27, 2017, at 3:09 PM, Paul Bernal <paulberna...@gmail.com> wrote: > > > > Dear friends, > > > > I have one dataframe which contains 378 observations, and another one, > > containing 362 observ

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-28 Thread Paul Bernal
t; exdf1 <- data.frame(Date = c("1985-10-01", "1985-11-01", "1985-12-01", > > "1986-01-01"), Transits = c(NA, NA, NA, NA)) > > exdf2 <- data.frame(Date = c("1985-10-01", "1986-01-01"), Transits = > c(15, > > 20)) &g

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-28 Thread Paul Bernal
abbreviated version of the Month, and %y refers to the Year provided in a > “2-integer” format. > > Hope this helps! > > Thank you. > > Regards, > Bo Lin > > On 28 Mar 2017, at 10:12 PM, Paul Bernal <paulberna...@gmail.com> wrote: > > Dear friends Ng

[R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Paul Bernal
Dear friends, I have one dataframe which contains 378 observations, and another one, containing 362 observations. Both dataframes have two columns, one date column and another one with the number of transits. I wanted to come up with a code so that I could fill in the dates that are missing in

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-28 Thread Paul Bernal
> > > -----Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paul > Bernal > Sent: Tuesday, March 28, 2017 9:12 AM > To: Ng Bo Lin <ngboli...@gmail.com> > Cc: r-help@r-project.org > Subject: Re: [R] Looping Through DataFrames with D

[R] Getting unexpected extra rows (continued)

2017-03-30 Thread Paul Bernal
Hello everyone, So I have created a date sequence with the following code: >x<-seq(as.Date("1985-10-01"), as.Date(Sys.Date()), "months") >x["Transits"]<-NA >xFrame<-data.frame(x) > str(xFrame) 'data.frame': 379 obs. of 1 variable: $ x: Date, format: "1985-10-01" "1985-11-01"

[R] Date operation Question in R

2017-03-30 Thread Paul Bernal
Hello everyone, Is there a way to use the function seq to generate a date sequence in this kind of format: jan-2007? Also, is there a way to change the Sys.Date() format to the one mentioned above (jan-2007)? Thanks in advance for your valuable help, Best regards, Paul [[alternative

[R] Modeling Time Series with Missing Observations

2017-03-23 Thread Paul Bernal
Dear all, Hope you are doing well. I am trying to model the historical number of transits of a particular market segment, but the problem is that I have missing data. I am working with monthly data, so I have 12 observations per year (in general). The problem is that, when I bring the data from

[R] Getting an unexpected extra row when merging two dataframes

2017-03-29 Thread Paul Bernal
Hello everyone, Hope you are all doing great. So I have two datasets: -dataset1Frame: which contains the historical number of transits from october 1st, 1985 up to march 1, 2017. It has two columns, one called TransitDate and the other called Transits. dataset1Frame is a table comming from an

[R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread Paul Bernal
Dear friends, Hope you are all doing great. I am trying to model historical data on transits, and the dates are in the following format: 1985-10-01 00:00:00.000 (this would be october, 1985). The data comes from an SQL Server Database and there are several missing observations. The problem is

[R] Transposing forecasts results from nnetar function and turn them into a data frame

2017-03-16 Thread Paul Bernal
Dear friends, I am currently using R version 3.3.3 (64-bit) and used the following code to generate forecasts: > library(forecast) > > library(tseries) ‘tseries’ version: 0.10-35 ‘tseries’ is a package for time series analysis and computational finance. See

Re: [R] Transposing forecasts results from nnetar function and turn them into a data frame

2017-03-17 Thread Paul Bernal
to 2017: NA NA NA NA NA NA NA NA NA NA ... $ residuals: Time-Series [1:377] from 1986 to 2017: NA NA NA NA NA NA NA NA NA NA ... $ lags : num [1:25] 1 2 3 4 5 6 7 8 9 10 ... $ series : chr "TSDat" $ method : chr "NNAR(25,1,13)[12]" $ call : language nnetar(y = TSD

[R] Getting the date out of R forecast funcion along with the forecasts as a data frame

2017-03-15 Thread Paul Bernal
Dear all, I am currently generating forcasts using several different functions in Azure Machine Learning Studio using the R script module (nnetar, auto.arima, HoltWinters, ets, etc.). However, I want to find a way to get the dates of the forecasts and put those dates (along with the forecasts)

[R] How to get the date generated by the forecast function as another field in a data frame

2017-03-15 Thread Paul Bernal
Dear all, I am currently using R for windows Version 3.3.3 (I will provide the sessionInfo() output below) > library("Rcmdr") Loading required package: splines Loading required package: RcmdrMisc Loading required package: car Loading required package: sandwich Rcmdr Version 2.3-2 >

Re: [R] How to get the date generated by the forecast function as another field in a data frame

2017-03-15 Thread Paul Bernal
sure but it seems that those dates are the rownames so you could try > > rownames(TSSeriesModel1Forecast) > > and see what it gives. Or I might be completely mistaken. > > Hope this helps, > > Rui Barradas > > > Em 15-03-2017 15:50, Paul Bernal escreveu: > >>

[R] How to get the transpose of R´s function forecast output and turn it into a data frame

2017-03-16 Thread Paul Bernal
Dear all, Hope you are doing great. Some R time series functions generate the forecasts in an horizontal way, for example: 2017 2018 20192020 forecast12 153575 but I´d like to have the output as follows: Date forecast 2017

[R] R forecasting using ses model

2017-04-12 Thread Paul Bernal
Dear Everyone, Hope you are doing great. I get the following error when trying to generate forecasts fitting a ses model. I would have thought that historical data from october 1985 up to september 2016 would be enough to generate forecasts. How many monthly observations does the ses model

[R] Unable to Load package Rcmdr after installation

2017-03-09 Thread Paul Bernal
Hello friends, Has anyone experienced trouble when trying to load package Rcmdr? It was working perfectly a couple of days ago, I don´t know why it isn´t working. > library("Rcmdr") Loading required package: splines Loading required package: RcmdrMisc Loading required package: car Loading

Re: [R] Unable to Load package Rcmdr after installation

2017-03-10 Thread Paul Bernal
0 paulberna...@gmail.com > ><paulberna...@gmail.com> > >wrote: > > > >> Thanks Ulrik, but the thing is that I tried installing adn loading tve > >> Hmisc package but wasn't able to do that either. > >> > >> > >> Mensaje original -

[R] Problems installing devtools from github

2017-03-07 Thread Paul Bernal
Dear all, I was using R version 3.3.2 to install devtools and some other packages in order to create models and generate a web service that can be seen in the Microsoft Azure Machine Learning Studio environment. Now, since Azure works with CRAN R version 3.1.0, I decided to download this R

[R] Problem with workspace and publishWebService function in RStudio

2017-03-02 Thread Paul Bernal
Dear all, I am trying to deploy an RStudio predictive model into Microsoft Azure Machine Learning Studio (see code below), however, I keep getting two error messages: (1)Error: could not find function "workspace", and (2) Error: could not find function "publishWebService", I am wondering what

[R] How to Transform a Factor Variable into a Date

2017-06-19 Thread Paul Bernal
Dear all, Hope you are doing great. I have a .csv file that I read into R, the .csv file consistss of two fields (TransitDate and CargoTons). The TransitDate I formatted from Excel in the fashion mmm-yy (e.g.: Apr-2013). However R does not recognize the field TransitDate as a date field. Here

[R] Proxy Issues when trying to install package shinyapps

2017-09-13 Thread Paul Bernal
Dear all, Hope you are doing great. I have been trying to install package shinyapps on R studio but I get the following messages: > devtools::install_github('rstudio/shinyapps') Installation failed: Couldn't resolve proxy 'procuratio.canal.acp' > githubinstall("shinyapps") Error in

[R] Keep on getting message errors when trying to install and load packages

2017-09-20 Thread Paul Bernal
Dear R friends, I am currently using Windows 8, 64-bit operating system, x64-based processor. I have installed R version 3.4.1 "Single Candle". Also, I have several packages installed in this path: C:\Users\PaulBernal\Documents\R\win-library\3.4 Plus some other packages installed in this other

[R] Keep on getting message errors when trying to install and load packages 2

2017-09-20 Thread Paul Bernal
Dear all, Is it normal for R to store installed packages in paths like the following? C:\Users\PaulBernal\AppData\Local\Temp\RtmpgXA5VS\downloaded_packages Regards, Paul [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Keep on getting message errors when trying to install and load packages

2017-09-21 Thread Paul Bernal
> of data. ~ John Tukey >> >> /// >> >> >> Van 14 tot en met 19 december 2017 verhuizen we uit onze vestiging in >> Brussel naar het Herman Teirlinckgebouw op de s

[R] Formatting the dates generated by the forecast function

2017-10-06 Thread Paul Bernal
Dear friend, hope you are doing great, I have the following code: > myTseriesData <- ts(data[,2], start=c(2000,01), end=c(2017,9), frequency=12) > myTseriesModel <- auto.arima(myTseriesData, d=1, D=1) > myTseriesForecast <- forecast(myTseriesModel, h=12) > # I want to be able to format the dates

[R] Unable to load packages RODBC and RODBCext in R

2017-09-12 Thread Paul Bernal
Dear all, Hope you are doing great. I am currently using R version 3.4.1 ("Single Candle") and was trying to install packages RODBC and RODBCext using the following steps: > install.packages("RODBCext") Installing package into ‘C:/Users/PaulBernal/Documents/R/win-library/3.4’ (as ‘lib’ is

[R] Adding Records to a Table in R

2017-11-01 Thread Paul Bernal
Dear R friends, I am currently working with time series data, and I have a table(as data frame) that has looks like this (TransitDate are in format = "%e-%B-%Y") : TransitDate Transits CargoTons 1985-04-011002500 1985-05-011354500 1985-06-01

Re: [R] Adding Records to a Table in R

2017-11-08 Thread Paul Bernal
> #Generate the complete set of dates as a data frame > dfDates<- data.frame( TransitDate=seq(from=as.Date("1985-04-01"),by="1 > month",length=13) ) > > # do the merge adding the "missing" rows (where NA will appear) > dfNew <- merge(dfDates, df

Re: [R] Adding Records to a Table in R

2017-11-08 Thread Paul Bernal
ows (where NA will appear) > dfNew <- merge(dfDates, dfOrig, by="TransitDate", all.x=TRUE ) > > # replace the NA's by zero > dfNew[is.na(dfNew)] <- 0 > > HTH, > Eric > > > On Wed, Nov 1, 2017 at 9:45 PM, Paul Bernal <paulberna...@gmail.c

Re: [R] Odd dates generated in Forecasts

2017-12-06 Thread Paul Bernal
vid Winsemius <dwinsem...@comcast.net>: > > > On Dec 6, 2017, at 5:07 AM, Paul Bernal <paulberna...@gmail.com> wrote: > > > > Dear friends, > > > > I have a weekly time series which starts on Jan 4th, 2003 and ends on > > december 31st, 2016. &

[R] Odd dates generated in Forecasts

2017-12-06 Thread Paul Bernal
Dear friends, I have a weekly time series which starts on Jan 4th, 2003 and ends on december 31st, 2016. I set up my ts object as follows: MyTseries <- ts(mydataset, start=2003, end=2016, frequency=52) MyModel <- auto.arima(MyTseries, d=1, D=1) MyModelForecast <- forecast (MyModel, h=12)

[R] Calculating AIC and BIC for Time Series Models

2018-06-08 Thread Paul Bernal
Dear friends, I have been fitting some TS models from the forecast package like ets(), ses(), hw(), HoltWinters(), stlf(), bats() and tbats(), however, when trying to use the AIC and BIC functions, I receive the following error message: Error in UseMethod("logLik") : no applicable method for

[R] Issues when Trying to Install Packages in R

2018-06-11 Thread Paul Bernal
Dear friends, I recently installed the following R version: R version 3.5.0 (2018-04-23) -- "Joy in Playing" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) However, when trying to install package lubridate (it also happened when I tried

[R] Automating Azure ML Experiments from R

2018-06-25 Thread Paul Bernal
Dear friends, Hope you are all doing great. I created a forecasting model experiment in azure ml studio and I am trying to automate the execution of the experiment. Does anybody knows or has an idea of how to automate azure ml experiments from R? Best regards, Paul [[alternative HTML

[R] Extracting the MAPE value from a fitted Time Series Model

2018-07-02 Thread Paul Bernal
Dear friends, I want to extract the MAPE value from a fitted time series model. This is what I have: > str(TransitSpline) List of 12 $ method : chr "Cubic Smoothing Spline" $ level: num [1:2] 80 95 $ x: Time-Series [1:385] from 1 to 385: 77 75

[R] Error when trying to install package rggobi

2017-12-26 Thread Paul Bernal
Dear friends, I am currently using R version 3.4.2 (64-bit for Windows) and when trying to download package rggobi an error pops up with the following message: "The program can´t start because libxml2-2.dll is missing from your computer. Try reinstalling the program to fix this problem" Is this

[R] Any Unsupervised Learning Algorithm for Time Series Forecasting in R

2018-06-20 Thread Paul Bernal
Dear friends, Hope you are all doing great. I would like to know if R has any unsupervised algorithm to generate forecasts for historical data. Any help will be greatly appreciated, Best regards, Paul [[alternative HTML version deleted]] __

[R] Obtaining Complete Dataset with Imputed Values

2018-08-24 Thread Paul Bernal
Dear friends, hope all is well with you, I am working with package mi for data inputation. Currently working with R version 3.5.0 (64-bit). Say my data is defined as dat, and I do the following: datimputations <- mi(dat[2:5], n.iter=50) completedat <- complete(datimputations) After using the

[R] Error when using complete function for imputed data

2018-09-03 Thread Paul Bernal
Dear friends, It seems to me that there is something wrong with the complete function. I am using R version 3.5.0 and mice package for data imputation. I am working on a Windows 8.1 Enterprise machine with 64-bit Operating System. So here is my code: Imputed_Data <- mice(dataFrame[2:5])

Re: [R] Error when using complete function for imputed data

2018-09-03 Thread Paul Bernal
ata) > > colSums(apply(CompleteData,2, is.na)) > Transits CargoTons RcnstPCUMS TotalToll > 0 0 0 0 > > > > Cheers > Petr > > > -Original Message- > > From: R-help On Behalf Of Paul Bernal > > Sent: Monday, Sept

[R] Reformatting output of Forecasts generated by mlp model

2018-12-20 Thread Paul Bernal
Dear friends, Hope you are doing great. I am using the multiple layer perceptron model (provided in R´s mlp() function for time series forecasting, but I don´t know how to reformat the output forecasts generated. mydata <- dput(datframe$Transits) > dput(datframe$Transits) c(77L, 75L, 85L, 74L,

[R] How To Extracting Summary Stats for Sepwise Regression

2019-03-20 Thread Paul Bernal
Hello dear friends, What I want is to, somehow data.frame the summary of a stepwise regression (the estimated coefficients and p-values) to show them as a report in table format. However I have not been able to do that. Any help and/or guidance will be greatly appreciated, below are all the

[R] Setting xreg parameter to generate forecasts of mlp models

2019-01-30 Thread Paul Bernal
Dear friends, Hope you are all doing great. So far, I´ve been able to generate forecasts using R´s mlp function (which allows fitting of multiple layer perceptron models to time series data). I basically fitted an mlp model and then tried to use the forecast function with the xreg parameter to

[R] R demographic facts

2019-06-03 Thread Paul Bernal
Dear friends, Hope you are all doing great. I would like to know if there is any place where I can find R demographic facts, such as, number of R users worldwide, by region, by country, by sector, etc. Any guidance will be greatly appreciated, Cheers, Paul [[alternative HTML version

[R] Subsetting Data from a Dataframe

2019-05-24 Thread Paul Bernal
Dear friends, Hope you are all doing well. I would like to know how to retrieve a complete dataframe (all the columns), except for the cases when one of the columns have either nulls or NAs. In this case, I´d like to retrieve all the columns but only the cases (rows) where Var5 has values

[R] stukel function unavailable for some odd reason

2019-05-03 Thread Paul Bernal
Dear friends, I have been fitting a logistic regression and wanted to try a couple of goodness of fit tests on the model. Doing some research, I came across Chris Dardi's stukel and logiGOF functions from package LogisticDx v0.1. I tried installing package LogisticDx in different R versions

[R] Errors Generated by Function gof from LogisticDx Package

2019-05-06 Thread Paul Bernal
Dear Christopher and friends, Hope you are all doing great. I am currently using R version 3.6.0 and I have a Windows 8, 64-bit Operating System. When applying function gof on my glm model, I get the following errors: > gof(GLM1) Error in factor(G, labels = dx1[, format(max(P), digits = 3), by

[R] Logistic Regression with Panel Data

2019-04-23 Thread Paul Bernal
Dear friends, hope you are all doing great, I would like to know if there is any R package that allows fitting of logistic regression to panel data. I installed and loaded package plm, but from what I have read so far, plm only allows fitting of linear regression to panel data, not logistic.

[R] Error in pglm function when performing logit regression on Panel Data

2019-04-23 Thread Paul Bernal
Dear friends, The following error is generated when trying to fit a logistic regression with the pglm function: > PGLM_Model2 <- pglm(dataframe2$TRANSIT~dataframe2$Draft+dataframe2$TOTALCOST+dataframe2$BUNKER+dataframe2$CHARTERVALUE, effect=c("twoways"), family=binomial('logit'),

[R] Unable to Understand Results of pglm function

2019-04-23 Thread Paul Bernal
Dear Yves, Hope you are doing great. I have been testing the pglm function from the pglm package, in order to fit a logit regression to a panel dataset, and I do not understand the results and/or errors produced by the function, so I want to be able to understand whether there is a problem with

Re: [R] Unable to Understand Results of pglm function

2019-04-23 Thread Paul Bernal
KER -6.712e-03Inf 0 1 > CHARTERVALUE 2.524e-04Inf 0 1 > dty2018 2.215e+00 Inf 0 1 > > > I have no knowledge of the pglm package and was trying it out on your data > wit

[R] Confidence Intervals with mlp forecasts

2019-08-27 Thread Paul Bernal
Dear friends, Hope you are all doing well. I am currently using function mlp (to fit multiple layer percentron model) to generate forecasts using package nnfor. I would like to know if the mlp function provides, or is there a way to construct confidence intervals for the forecasts generated by

[R] Is this a way to perform cross validation?

2019-09-05 Thread Paul Bernal
Dear friends, Hope you are all doing great. If I am not mistaken, cross validation is about splitting the data into two parts: the training dataset and the test dataset. I have a dataset having the number of vehicles sold, from january 2008 up to june 2019. I decided to go for an 80-20 scheme

[R] accuracy function from forecast package

2019-08-05 Thread Paul Bernal
Dear friends, Hope you are all doing great. Does R´s accuracy function from the forecast package performs cross-validation? Or can I say that the accuracy function does cross-validation? Best regards, Paul [[alternative HTML version deleted]]

[R] Problems with lambda argument

2019-11-18 Thread Paul Bernal
Dear friends, Hope you are doing great. When setting the lambda = "auto" in the auto.arima function, I get an error message saying non-numeric argument to binary operator. I have performed several tests changing parameters and going through the other lines of code and as soon as I set lambda =

[R] lambad and biasadj parameters in auto.arima and forecast functions

2019-11-18 Thread Paul Bernal
Dear friends, Hope you are doing great. I noticed that both the auto.arima and the forecast function share parameters, like for example lambda and biasadj. If I set this parameters = TRUE in function auto.arima, do I also have to specify them and set them = TRUE in the forecast function? Best

Re: [R] Problems with lambda argument

2019-11-18 Thread Paul Bernal
o", but I guess is a workaround at the very least. Cheers, Paul El lun., 18 nov. 2019 a las 9:26, Duncan Murdoch () escribió: > On 18/11/2019 8:44 a.m., Paul Bernal wrote: > > Dear friends, > > > > Hope you are doing great. When setting the lambda = "auto" in the > &g

Re: [R] Converting binary number to in Two´s complement representation

2020-01-25 Thread Paul Bernal
er. > > > > Please ensure that character values are not misinterpreted as factor > when you construct your data frames. > > > > The four columns do not look to be in consistent order with each other. > This in itself could cause trouble. > > > > I will look more whe

Re: [R] Converting binary number to in Two´s complement representation

2020-01-24 Thread Paul Bernal
110100011", "11110100100", "0100101", "0100110", "0100111", "0101000", "0101001&q

Re: [R] Converting binary number to in Two´s complement representation

2020-01-24 Thread Paul Bernal
"10110010"? > > Please post a set of relevant input strings, and the answers you want from > them. > The rest of the columns are not helpful for this specific exercise. > > On Fri, Jan 24, 2020 at 11:34 AM Paul Bernal > wrote: > > > > Dear friend Rui,

  1   2   >