Re: [R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
kages with dependencies. > > Sarah > > On Mon, May 27, 2024 at 2:48 PM Paul Bernal > wrote: > > > > Dear Sarah, > > > > Here is the sessionInfo() output, I forgot to include it in my reply. > > > > sessionInfo() > > R version 4.3.2 (2023-

Re: [R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
you probably have > mismatched versions of packages with dependencies. > > Sarah > > On Mon, May 27, 2024 at 2:48 PM Paul Bernal > wrote: > > > > Dear Sarah, > > > > Here is the sessionInfo() output, I forgot to include it in my reply. > > > > ses

Re: [R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
rmation. > > Sarah > > > > On Mon, May 27, 2024 at 12:25 PM Paul Bernal > wrote: > > > > Dear all, > > > > I am currently using R 4.3.2 and the data I am working with is the > > following: > > > > ts_ingresos_reservas= ts(ingres

Re: [R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
> > If I were having a problem of this sort, I'd update R (if you can), > run update.packages() and then try again with a minimal set of > packages. As one of the other responses suggested, you probably have > mismatched versions of packages with dependencies. > > Sarah > &g

Re: [R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
en > I run them, so we need more information. > > Sarah > > > > On Mon, May 27, 2024 at 12:25 PM Paul Bernal > wrote: > > > > Dear all, > > > > I am currently using R 4.3.2 and the data I am working with is the > > following: > > > &g

[R] Issues with R's forecast function

2024-05-27 Thread Paul Bernal
Dear all, I am currently using R 4.3.2 and the data I am working with is the following: ts_ingresos_reservas= ts(ingresos_reservaciones$RESERVACIONES, start = c(1996,11), end = c(2024,4), frequency = 12) structure(c(11421.54, 388965.46, 254774.78, 228066.02, 254330.44, 272561.38, 377802.1, 3

Re: [R] R interpreting numeric field as a boolean field

2024-01-30 Thread Paul Bernal
las 14:59, Paul Bernal () escribió: > Hi Bert, > > Below the information you asked me for: > > nrow(mydataset) > [1] 2986276 > > > > sapply(mydataset, "class") > $`Transit Date` > [1] "POSIXct" "POSIXt" > > $`Market

Re: [R] R interpreting numeric field as a boolean field

2024-01-30 Thread Paul Bernal
> dt <- data.frame(a = c(NA,NA, FALSE, TRUE), b = 1:4) >> > dt >> a b >> 1NA 1 >> 2NA 2 >> 3 FALSE 3 >> 4 TRUE 4 >> > sapply(dt, class) >> a b >> "logical" "integer" >> > dt$

Re: [R] R interpreting numeric field as a boolean field

2024-01-30 Thread Paul Bernal
27;s package function import_list does, that is able to keep the field's numeric data type nature. Cheers, Paul El mar, 30 ene 2024 a las 12:23, Duncan Murdoch () escribió: > On 30/01/2024 11:10 a.m., Paul Bernal wrote: > > Dear friends, > > > > Hope you are doing well. I am

[R] R interpreting numeric field as a boolean field

2024-01-30 Thread Paul Bernal
Dear friends, Hope you are doing well. I am currently using R version 4.3.2, and I have a .xlsx file that has 46 sheets on it. I basically combined all 46 sheets and read them as a single dataframe in R using package rio. I read a solution using package readlx, as suggested in a StackOverflow di

[R] Problems when trying to visualize clusters

2023-11-16 Thread Paul Bernal
Dear friends, Hope you are all doing great. I am currently working with R version 4.3.1. There are two things I wanted to accomplish: 1. Determine the optimal number of clusters for my dataset, which contains 11 market segments and two features, namely, toll revenue (aka tolls) and number of tran

Re: [R] How to Reformat a dataframe

2023-10-27 Thread Paul Bernal
then do this > df <- data.frame(aportes_alajuela = unlist(alajuela_df, use.names = FALSE)) > > However, you said you expected 1509 observations, but this gives you > 1512 observations. If you want to exclude the 3 NA observations, do > something like: > > df <- df[!is.na

[R] How to Reformat a dataframe

2023-10-27 Thread Paul Bernal
Dear friends, I have the following dataframe: dim(alajuela_df) [1] 126 12 dput(alajuela_df) structure(list(...1 = c(92.9925354, 76.0024254, 44.99547465, 28.00536465, 120.0068103, 31.9980405, 85.0071837, 40.1532933, 19.3120917, 113.12581575, 28.45843425, 114.400074, 143.925, 46.439634, 20.784

[R] Problems Structuring My Data

2023-10-03 Thread Paul Bernal
Dear friends, Hope you are all doing great. I am working with a dataset which is a subset of the original one, that has the following columns: FAILDATE, REM_NAME, and Days_At_Failure. I want to structure the data in such a way that I have the unique FAILDATE in "%Y-%m-%d" format, then a column fo

[R] Trouble with FAILDATE when using the aggregate() and ts() functions

2023-09-30 Thread Paul Bernal
Dear friends, First of all, the following is the R version I am working with: [64-bit] C:\Program Files\R\R-4.3.1 The packages I am using are the following: library("dplyr") library("lubridate") library("tidyverse") library("readxl") library("stats") #reading data for distribution fitting failu

[R] Grouping by Date and showing count of failures by date

2023-09-30 Thread Paul Bernal
Dear friends, Hope you are doing great. I am attaching the dataset I am working with because, when I tried to dput() it, I was not able to copy the entire result from dput(), so I apologize in advance for that. I am interested in creating a column named Failure_Date_Period that has the FAILDATE b

Re: [R] Issues when trying to fit a nonlinear regression model

2023-08-20 Thread Paul Bernal
Thank you so much for your valuable feedback Berwin. Have a great day. Cheers, Paul El El dom, 20 de ago. de 2023 a la(s) 10:21 p. m., Berwin A Turlach < berwin.turl...@gmail.com> escribió: > G'day Paul, > > On Sun, 20 Aug 2023 12:15:08 -0500 > Paul Bernal wrote: &

[R] Interpreting Results from LOF.test() from qpcR package

2023-08-20 Thread Paul Bernal
I am using LOF.test() function from the qpcR package and got the following result: > LOF.test(nlregmod3) $pF [1] 0.97686 $pLR [1] 0.77025 Can I conclude from the LOF.test() results that my nonlinear regression model is significant/statistically significant? Where my nonlinear model was fitted a

Re: [R] Issues when trying to fit a nonlinear regression model

2023-08-20 Thread Paul Bernal
Sun, Aug 20, 2023 at 12:17 PM Paul Bernal > wrote: > >> Dear Bert, >> >> Thank you for your extremely valuable feedback. Now, I just want to >> understand why the signs for those starting values, given the following: >> > #Fiting intermediate model to get st

Re: [R] Issues when trying to fit a nonlinear regression model

2023-08-20 Thread Paul Bernal
om, 20 ago 2023 a las 14:07, Bert Gunter () escribió: > Oh, sorry; I changed signs in the model, fitting > theta0 + theta1*exp(theta2*x) > > So for theta0 - theta1*exp(-theta2*x) use theta1= -.exp(-1.8) and theta2 = > +.055 as starting values. > > -- Bert > > > >

Re: [R] Issues when trying to fit a nonlinear regression model

2023-08-20 Thread Paul Bernal
nd theta2 > in the nonlinear model. This converged without problems. > > Cheers, > Bert > > > On Sun, Aug 20, 2023 at 10:15 AM Paul Bernal > wrote: > >> Dear friends, >> >> This is the dataset I am currently working with: >> >dput(mod14data2_ran

[R] Issues when trying to fit a nonlinear regression model

2023-08-20 Thread Paul Bernal
Dear friends, This is the dataset I am currently working with: >dput(mod14data2_random) structure(list(index = c(14L, 27L, 37L, 33L, 34L, 16L, 7L, 1L, 39L, 36L, 40L, 19L, 28L, 38L, 32L), y = c(0.44, 0.4, 0.4, 0.4, 0.4, 0.43, 0.46, 0.49, 0.41, 0.41, 0.38, 0.42, 0.41, 0.4, 0.4 ), x = c(16, 24, 32, 3

Re: [R] Determining Starting Values for Model Parameters in Nonlinear Regression

2023-08-19 Thread Paul Bernal
ting values are worth heeding. > That nlxb() does well in many cases is useful, > but not foolproof. And John Fox has shown that the problem can be tackled > very simply too. > > Best, JN > > > On 2023-08-19 18:42, Paul Bernal wrote: > > Thank you so much Dr. Nash, I tru

Re: [R] Determining Starting Values for Model Parameters in Nonlinear Regression

2023-08-19 Thread Paul Bernal
pval gradient > JSingval > Beta1 0.00629212 5.997e-06 1049 2.425e-42 4.049e-08 > 721.8 > Beta2 0.00867741 1.608e-05 539.7 1.963e-37 -2.715e-08 > 56.05 > Beta3 0.00801948 8.809e-05 91.03 2.664e-24 1.497

[R] Determining Starting Values for Model Parameters in Nonlinear Regression

2023-08-19 Thread Paul Bernal
Dear friends, Hope you are all doing well and having a great weekend. I have data that was collected on specific gravity and spectrophotometer analysis for 26 mixtures of NG (nitroglycerine), TA (triacetin), and 2 NDPA (2 - nitrodiphenylamine). In the dataset, x1 = %NG, x2 = %TA, and x3 = %2 ND

[R] Determining Starting Values for Model Parameters in Nonlinear Regression

2023-08-19 Thread Paul Bernal
Dear friends, Hope you are all doing well and having a great weekend. I have data that was collected on specific gravity and spectrophotometer analysis for 26 mixtures of NG (nitroglycerine), TA (triacetin), and 2 NDPA (2 - nitrodiphenylamine). In the dataset, x1 = %NG, x2 = %TA, and x3 = %2 ND

[R] Plotting Fitted vs Observed Values in Logistic Regression Model

2023-08-01 Thread Paul Bernal
Dear friends, I hope this email finds you all well. This is the dataset I am working with: dput(random_mod12_data2) structure(list(Index = c(1L, 5L, 11L, 3L, 2L, 8L, 9L, 4L), x = c(5, 13, 25, 9, 7, 19, 21, 11), n = c(500, 500, 500, 500, 500, 500, 500, 500), r = c(100, 211, 391, 147, 122, 310, 343

[R] Obtaining R-squared from All Possible Combinations of Linear Models Fitted

2023-07-17 Thread Paul Bernal
Dear friends, I need to automatically fit all possible linear regression models (with all possible combinations of regressors), and found the MuMIn package, which has the dredge function. This is the dataset I am working with: > dput(final_frame) structure(list(y = c(41.9, 44.5, 43.9, 30.9, 27.9

[R] Automatic Distribution Fitting Using R

2022-10-27 Thread Paul Bernal
Dear friends, I previously asked if there was an R package that could automatically test several different probability distributions for a given dataset and give the best fit. I found that the package DistributionFitR does something along those lines with the function globalfit(), just in case an

[R] Function for Distribution Fitting

2022-10-26 Thread Paul Bernal
Dear friends from the R community, Hope you are all doing great. So far, whenever I need to perform distribution fitting on a particular dataset, I make use of R package fitdistrplus. However, distribution fitting using the fitdist() function from fitdistrplus is rather manual (you need to specif

[R] Issues when trying to fit a curve when generating random deviates

2022-09-18 Thread Paul Bernal
Dear friends, Hope you are doing great. I first generated random deviates from a binomial distribution with the following code (I had to generate from a B(20,0.4) dist): #Setting seed set.seed(1234567) #Generating 1000 random deviates from a B(20,0.4) Distribution x <- rbinom(1000,20,0.4) #Gener

Re: [R] About spDataLarge Package

2022-08-29 Thread Paul Bernal
e remotes is a CRAN package.) > > Hope this helps, > > Rui Barradas > > Às 17:30 de 29/08/2022, Paul Bernal escreveu: > > Dear friends, > > > > I have just installed R version 4.2.1 for Windows on my machine, and was > > trying to install package spDataLarge,

[R] About spDataLarge Package

2022-08-29 Thread Paul Bernal
Dear friends, I have just installed R version 4.2.1 for Windows on my machine, and was trying to install package spDataLarge, but the console threw the following error message: Warning in install.packages : package 'spDataLarge' is not available for this version of R A version of this package

Re: [R] Issue when trying to install or load packages in RStudio

2022-05-13 Thread Paul Bernal
start R so it will find Rtools. > > [1] https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html > > On May 13, 2022 6:38:29 AM PDT, Paul Bernal > wrote: > >Dear friends, > > > >Hope you are doing great. I have installed R version 4.2.0 and > >RStu

[R] Issue when trying to install or load packages in RStudio

2022-05-13 Thread Paul Bernal
Dear friends, Hope you are doing great. I have installed R version 4.2.0 and RStudio 2022.02.2 Build 485 "Prairie Trillium" Release (8acbd38b, 2022-04-19) for Windows. Last week, I developed a model in RStudio and was able to install and load many packages, but now RStudio is behaving oddly. I g

[R] Filtering an Entire Dataset based on Several Conditions

2022-05-09 Thread Paul Bernal
Dear friends, I have a dataframe which every single (i,j) entry (i standing for ith row, j for jth column) has been normalized (converted to z-scores). Now I want to filter or subset the dataframe so that I only end up with a a dataframe containing only entries greater than -3 or less than 3. Ho

[R] Issues when setting k to 1L

2022-04-24 Thread Paul Bernal
Dear Rui, I made the modification to k <- 1L (see the code below), but I get the following odd result (maybe I am forgetting to do something): print(final_frame_6) p1 NA NA NA NA NA NA NA NA NA average_prob_frame_6 1 0.437738 NA NA NA NA NA NA NA NA NA NA > print(paste("T

Re: [R] R Code Execution taking forever

2022-04-24 Thread Paul Bernal
n with run time and trial size should let you > estimate run time for 1 million. > > > Tim > > -Original Message- > From: R-help On Behalf Of Rui Barradas > Sent: Sunday, April 24, 2022 5:44 AM > To: Paul Bernal ; R > Subject: Re: [R] R Code Execution taking

Re: [R] Model To Simulate Dice Roll

2022-04-22 Thread Paul Bernal
t;> > } >> > >> > dice_rolls <- 100 >> > #dice_rolls <- 1e6 >> > num_dice <- 1 >> > dice_sides <- 6 >> > months <- 12 >> > >> > set.seed(2022) >> > prob_frame <- t(dice_simul(months, num_dice,

[R] Looping through all matrix columns each 1 row at a time

2022-04-20 Thread Paul Bernal
Dear R friends, One question, so, thanks to the Bert's kind feedback, I was able to create my matrix using the following code: dice_rolls = 120 num_dice = 1 dice_sides = 6 #performing simulation dice_simul = data.frame(dice(rolls = dice_rolls, ndice = num_dice, sides = dice_sides, plot.it = TRU

Re: [R] Model To Simulate Dice Roll

2022-04-20 Thread Paul Bernal
I have understood correctly, perhaps others > will be kinder and provide you the missing details that I did not. > > > Bert Gunter > > On Wed, Apr 20, 2022 at 9:02 PM Paul Bernal > wrote: > > > > Dear friend Bert, > > > > Thank you so much for your kind reply

[R] Question regarding k-fold cross validation

2022-04-15 Thread Paul Bernal
Dear friends, Hope you are doing great. I need to perform a k-fold cross validation analysis on the famous iris dataset, with k = 5. Now, the model I am using is a multinomial logit, because the dependent variable is species and it has three classes (setosa, versicolor and virginica). The packag

[R] How to automatically set R to read the files from a specific location

2022-03-02 Thread Paul Bernal
Dear friends, I am working on an assignment using R, and I would like to set my R code so that R automatically recognizes where the files that need to be read are without having to use the absolute path? The idea is that when I send my .R script and my professor receives it, he can just execute th

Re: [R] Pixel Image Reshaping using R

2022-02-24 Thread Paul Bernal
lov () escribió: > On Thu, 24 Feb 2022 13:12:16 -0500 > Paul Bernal wrote: > > > dataframe_train <- as.matrix((read.csv(file_path_2, header=TRUE, > > stringsAsFactors = FALSE))) > > Have you removed the first column containing the labels? > > > dim(datafram

Re: [R] Pixel Image Reshaping using R

2022-02-24 Thread Paul Bernal
Thu, 24 Feb 2022 11:00:08 -0500 > Paul Bernal wrote: > > > Each pixel column in the training set has a name like pixel x, where > > x is an integer between 0 and 783, inclusive. To locate this pixel on > > the image, suppose that we have decomposed x as x = i ∗ 28 + j, wher

Re: [R] How to create density ellipses with R

2022-01-14 Thread Paul Bernal
I hope this helps, > John > > -- > John Fox, Professor Emeritus > McMaster University > Hamilton, Ontario, Canada > web: https://socialsciences.mcmaster.ca/jfox/ > > On 2022-01-14 10:12 a.m., Paul Bernal wrote: > > Dear R friends, > > > > Happy new year to you

[R] How to create density ellipses with R

2022-01-14 Thread Paul Bernal
Dear R friends, Happy new year to you all. Not quite sure if this is the proper place to ask about this, so I apologize if it is not, and if it isn´t, maybe you can point me to the right place. I would like to know if there is any R package that allows me to produce density ellipses. Searching th

Re: [R] Including percentage values inside columns of a histogram

2021-08-16 Thread Paul Bernal
er > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Mon, Aug 16, 2021 at 4:14 PM Paul Bernal > wrote: > >> Dear

Re: [R] Including percentage values inside columns of a histogram

2021-08-16 Thread Paul Bernal
ry(plotrix) > histpcts<-paste0(round(100*histval$counts/sum(histval$counts),1),"%") > barlabels(histval$mids,histval$counts,histpcts) > > I think that's what you asked for: > > Jim > > On Tue, Aug 17, 2021 at 8:44 AM Paul Bernal > wrote: > > > &g

Re: [R] Including percentage values inside columns of a histogram

2021-08-16 Thread Paul Bernal
es(sp)[i]) >h <- hist(sp[[i]]$Amount, main = hist_title) >lbls <- ifelse(h$counts == 0, NA_integer_, h$counts) >text(h$mids, h$counts/2, labels = lbls) > }) > par(old_par) > > > Hope this helps, > > Rui Barradas > > Às 23:16 de 16/08/21, Paul Bern

[R] Including percentage values inside columns of a histogram

2021-08-16 Thread Paul Bernal
Hello everyone, I am currently working with R version 4.1.0 and I am trying to include (inside the columns of the histogram), the percentage distribution and I want to generate three histograms, one for each fiscal year (in the Date column, there are three fiscal year AF 2017, AF 2020 and AF 2021)

[R] How to calculate area and volume of an image with R

2021-02-28 Thread Paul Bernal
Hello everyone, Is there a way to calculate volume and area of an image with R? Any guidance will be greatly appreciated. Best regards, Paul [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] Image processing in R for BMI calculation

2021-02-28 Thread Paul Bernal
Hello everyone, Does anyone know about any package for image processing, for example, to calculate body mass index pased on a picture, silouette or image. Any guidance will be greatly appreciated. Best regards, Paul [[alternative HTML version deleted]]

Re: [R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Paul Bernal
27;ll send my previous suggestion. > > library(qcc) > x11(width=13,height=5) > pareto.chart(dataset2$Points,xaxt="n") > library(plotrix) > staxlab(1,at=seq(0.035,0.922,length.out=140), > labels=substr(dataset2$School,1,20),srt=90,cex=0.5) > > Jim > > O

[R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Paul Bernal
Dear friends, Hope you are doing well. I am currently using R version 3.6.2. I installed and loaded package qcc by Mr. Luca Scrucca. Hopefully someone can tell me if there is a workaround for the issue I am experiencing. I generated the pareto chart using qcc´s pareto.chart function, but when th

[R] Adjusting The size and Orientation of x-axis labes for Pareto Charts

2020-09-11 Thread Paul Bernal
Dear friends, Hope you are doing well. I am currently using R version 3.6.2. I installed and loaded package qcc by Mr. Luca Scrucca. I generated the pareto chart using qcc´s pareto.chart function, but when the graph gets generated, the x-axis labels aren´t fully shown, and so the text can´t be vi

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread Paul Bernal
not enlighten anyone here, apparently including you. Please reference > package documentation, and/or reproduce the analysis discussed in that > video to provide a contrasting (or supporting) point with the example you > gave. > > > On September 2, 2020 7:21:58 AM PDT, Paul Ber

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread Paul Bernal
aid transformation" principle would suggest to model > > sqrt(y) ~ .. in a *regression* model which nnet() can do. > > Martin Maechler > ETH Zurich and R Core team > > > > >> On 1 Sep 2020, at 22:19 , Paul Bernal > >> wrote: > >> &

[R] Odd Results when generating predictions with nnet function

2020-09-01 Thread Paul Bernal
Dear friends, Hope you are all doing well. I am currently using R version 4.0.2 and working with the nnet package. My dataframe consists of three columns, FECHA which is the date, x, which is a sequence from 1 to 159, and y, which is the number of covid cases (I am also providing the dput for thi

[R] Trouble getting labels for bars in Pareto Chart

2020-08-19 Thread Paul Bernal
Dear friends, Hope you are doing well. I am currently using R version 3.6.2. I installed and loaded package qcc by Mr. Luca Scrucca. This is the structure of my data: str(dataset2) 'data.frame': 140 obs. of 2 variables: $ School: Factor w/ 140 levels "24 de Diciembre",..: 39 29 66 16 67 116

Re: [R] Dependent Variable in Logistic Regression

2020-08-01 Thread Paul Bernal
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sat, Aug 1, 2020 at 11:15 AM Patrick (Malone Quantitative) < > mal...@malonequantitative.com> wrote: > >> No, R does not. glm() does in order to do logistic regression. >> >>

Re: [R] Dependent Variable in Logistic Regression

2020-08-01 Thread Paul Bernal
ce identical results up to labeling. > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sat, Aug 1, 2

[R] Dependent Variable in Logistic Regression

2020-08-01 Thread Paul Bernal
Dear friends, Hope you are doing great. I want to fit a logistic regression in R, where the dependent variable is the covid status (I used 1 for covid positives, and 0 for covid negatives), but when I ran the glm, R complains that I should make the dependent variable a factor. What would be more

[R] Testing wether my dataset follows a poisson distribution with R

2020-07-21 Thread Paul Bernal
Dear friends, I have a sample dataset, which is basically the number of transits through a particular waterway, and is on a daily basis. MyDat <- dataset$DailyTransits What I´d like to do is to test whether MyDat follows a poisson distribution or not. What R function could accomplish this? Any

Re: [R] Issues whenWorking with Daily Time Series and Generating Forecasts

2020-07-13 Thread Paul Bernal
I am messing around with your data. > > Thanks, > Erin > > Erin Hodgess, PhD > mailto: erinm.hodg...@gmail.com > > > On Mon, Jul 13, 2020 at 12:41 PM Paul Bernal > wrote: > >> Dear friends, hope you are doing great, >> >> I am working with a dai

Re: [R] Issues whenWorking with Daily Time Series and Generating Forecasts

2020-07-13 Thread Paul Bernal
s, please? > > They work very well on daily series. > > Thanks, > Erin > > On Mon, Jul 13, 2020 at 12:41 PM Paul Bernal > wrote: > >> Dear friends, hope you are doing great, >> >> I am working with a daily time series, the series starts on march,10, 2020

[R] Issues whenWorking with Daily Time Series and Generating Forecasts

2020-07-13 Thread Paul Bernal
Dear friends, hope you are doing great, I am working with a daily time series, the series starts on march,10, 2020 until july 9th, 2020. I would like to know if there is a way to make it a ts object, specifying the year, month and day with the ts function. First, I tried setting the ts object as

Re: [R] Working with very large datasets and generating an executable file

2020-05-06 Thread Paul Bernal
That could be the answer, yes. El jue., 7 de mayo de 2020 1:22 a. m., escribió: > Or maybe a Shiny Application? > > On 7 May 2020 06:53, Paul Bernal wrote: > > Dear Jeff, > > Thank you for the feedback. So, after reading your comments, it seems > that, > in order to

Re: [R] Working with very large datasets and generating an executable file

2020-05-06 Thread Paul Bernal
that can run on any OS. As for python... it is > hardly the only game in town for building executables, but it and those > other options are off topic here. > > On May 6, 2020 10:53:00 PM PDT, Paul Bernal > wrote: > >Dear Jeff, > > > >Thank you for the feedback.

Re: [R] Working with very large datasets and generating an executable file

2020-05-06 Thread Paul Bernal
Thank you Abby! Cheers! El mié., 6 de mayo de 2020 10:35 p. m., Abby Spurdle escribió: > > The second question is, is there a way I can develop an R model and turn > it > > into an executable program that can work on any OS? > > --myrscript.c > int main (int argc, char* argv []) >

Re: [R] Working with very large datasets and generating an executable file

2020-05-06 Thread Paul Bernal
it > will almost certainly be more practical to deliver code in script/package > form. > > On May 6, 2020 2:20:47 PM PDT, Paul Bernal wrote: > >Dear R friends, > > > >Hope you are doing well. I have two questions, the first one is, can I > >work > >with

[R] Working with very large datasets and generating an executable file

2020-05-06 Thread Paul Bernal
Dear R friends, Hope you are doing well. I have two questions, the first one is, can I work with very large datasets in R? That is, say I need to test several machine learning algorithms, like (random forest, multiple linear regression, etc.) on datasets having between 50 to 100 columns and 20 mil

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

2020-01-25 Thread Paul Bernal
r. > > > > 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 loo

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

2020-01-24 Thread Paul Bernal
w the > rest of what you wrote. > > Rich > > On Fri, Jan 24, 2020 at 15:02 Paul Bernal wrote: > >> Dear friend Richard, >> >> Thank you for your interest in helping me through this challenge. As >> requested, I am providing the two lat and long frames you s

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

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

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,

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

2020-01-24 Thread Paul Bernal
85907201, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 10217, NA, NA, NA, NA, NA, 1485907206, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 10217, NA, NA, NA ), ...11

[R] Binary Number To Two´s Complement Representation

2020-01-20 Thread Paul Bernal
Dear Rui, Based on the rules given in the link below, I want to transform the binary numbers into latitude and longitude coordinates (in degrees and minutes), so that is basically what I am trying to accomplish. The first integer gives the sign (positive or negative) of the number, and the rest n-

[R] (no subject)

2020-01-20 Thread Paul Bernal
Example of conversion to decimal of a signed binary number in two's complement representation Let's convert to decimal the following signed binary number: 10110010 10110010 = -1×27 + 0×26 + 1×25 + 1×24 + 0×23 + 0×22 + 1×21 + 0×20 = -128 + 32 + 16 + 2 = -78. that operation ilvoves base 2 raised to

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

2020-01-20 Thread Paul Bernal
"10110010") > fun("1000") > fun(c("0100", "0111", "10110010", "1000")) > > > Hope this helps, > > Rui Barradas > > Às 11:38 de 20/01/20, Rui Barradas escreveu: > > Hello, > > > &g

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

2020-01-20 Thread Paul Bernal
Dear friends, How can I convert the following binary number in two´s complement representation in R? 10110010 Any help and/or guidance will be greatly appreciated, Best regards, Paul [[alternative HTML version deleted]] __ R-help@r-project.

Re: [R] Converting Decimal numbers into Binary

2019-12-27 Thread Paul Bernal
r 28-character string into a character vector, > index the table with that vector, and paste the results together. > > (By the way, at no point in the process do you have the least interest > in converting > anything to decimal.) > > On Sat, 28 Dec 2019 at 05:31, Paul Bernal wrote:

Re: [R] Converting Decimal numbers into Binary

2019-12-27 Thread Paul Bernal
t; } > > > bin2dec("00110101011100") > #[1] 205344990 > > b <- utf8ToBin("133m@ogP00PD;88MD5MTDww@2D7k", out = "bin") > bin2dec(b) > # [1] 1 3 3 53 16 55 47 32 0 0 32 20 11 8 8 29 20 5 29 36 > #[21] 20 63 63 16 2 20 7

Re: [R] Converting Decimal numbers into Binary

2019-12-27 Thread Paul Bernal
aps [1] is relevant? > > [1] > https://stackoverflow.com/questions/52298995/r-binary-decimal-conversion-confusion-ais-data > > On December 27, 2019 7:42:36 AM PST, Paul Bernal > wrote: > >Dear friends, > > > >Hope you are all doing well. I need to find a way to

[R] Converting Decimal numbers into Binary

2019-12-27 Thread Paul Bernal
Dear friends, Hope you are all doing well. I need to find a way to convert ascii numbers to six digit binary numbers: I am working with this example, I converted the string to ascii, and finally to decimal, but I am having trouble converting the decimal numbers into their six digit binary represe

[R] Converting AIS Message to Number

2019-12-23 Thread Paul Bernal
Dear friends, Hope you are doing great. I would like to process an AIS file (which comes in either a .txt or .csv format). The AIS file is contained in a specific path, say C:/AISFiles/File.txt. The file contains messages like the following: !AIVDM,2,1,2,A,5EPtgd42CRtIADNU@N0https://stat.ethz.ch/m

Re: [R] Problems with lambda argument

2019-11-18 Thread Paul Bernal
t;, 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

[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 reg

[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 = "a

[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 (wh

[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 th

[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] 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 de

[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 differe

[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] 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 with

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

2019-04-23 Thread Paul Bernal
Inf 0 1 > BUNKER -6.712e-03Inf 0 1 > CHARTERVALUE 2.524e-04Inf 0 1 > dty2018 2.215e+00Inf 0 1 > > > I have no knowledge of the pglm package and was

[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 th

[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'), index=dataframe2

[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. Any

  1   2   >