[R] Issues with lapply and for loop Compared to Running Function

2020-09-23 Thread Kevin Egan
Hello, I’d like to apologise as I understand that this is a significant amount of code, but I am struggling to understand why my code develops an error when running. I have been able to obtain results for the list of matrices named xdot and ydot but am struggling with zdot as I keep getting the

[R] Error Running Bootstrap Function within Wrapper Function

2021-01-05 Thread Kevin Egan
Hello, I am currently trying to solve a problem with the boot package and writing a function within a function in R. I have developed several functions to perform the lasso but continue to receive an error when bootstrapping these functions within a wrapper function. When I perform these methods u

Re: [R] Error Running Bootstrap Function within Wrapper Function

2021-01-07 Thread Kevin Egan
me in a simulation. foo2 does the same general > kind of thing. > > Could that be part of the problem? > > S Ellison > > > > -Original Message- > > From: R-help On Behalf Of Kevin Egan > > Sent: 05 January 2021 12:26 > > To: r-help > > Su

[R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Kevin Egan
I posted this question: I am currently using R , RStudio , and a remote computer (using an R script) to run the same code. I start by using set.seed(123) in all three versions of the code, then using glmnet to assess a matrix. Ultimately, I am having trouble reproducing the results between my l

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-09 Thread Kevin Egan
environments. > > On August 7, 2020 1:24:55 PM PDT, Kevin Egan wrote: >> I posted this question: >> >> I am currently using R , RStudio , and a remote computer (using an R >> script) to run the same code. I start by using set.seed(123) in all >> three versions o

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-09 Thread Kevin Egan
o support multi-core and parallel computing. > > If your code uses parallel computing (?), you may need to look at how > random numbers, and related results, are handled... > > > On Sun, Aug 9, 2020 at 1:14 AM Kevin Egan wrote: > > > > I posted this question: > >

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-09 Thread Kevin Egan
ss tacks: > I think you need to ensure all your package versions (R and add-on > packages) are the same. > > Fwiw, > > Stephen > > On Sun, Aug 9, 2020, 08:26 Kevin Egan wrote: > >> Hi Stephen, >> >> I believe I am using Renv, but on my remote comput