Giter Site home page Giter Site logo

Comments (12)

morrowcj avatar morrowcj commented on June 2, 2024

@arives, I know it has been a while since you opened this issue, but could you elaborate a bit? I get the same results for the following two sets of code (taken from the examples given in fitGLS_partition:

(outA = fitGLS_partition(CLS_coef ~ 1, partmat = pm, data = df, 
                                       nugget = 0, ncores = 1))

and

(outB = fitGLS_partition(CLS_coef ~ 1, partmat = pm, data = df, 
                                       nugget = 0, ncores = 2))

the results of outA$overall (and outB$overall) is

$coefficients
[1] 0.0001780692

$rcoefficients
         [,1]
[1,] 0.999392

$rSSR
[1] NaN

$rSSE
[1] 0.2702243

$Fstat
[1] NaN

$dfs
df1 df2 
  0 666 

$partdims
   npart partsize 
       3      666 

$t.test
              Est         SE     t.stat    pval.t
[1,] 0.0001780692 0.00228522 0.07792214 0.9378978

$covar_coef
            [,1]
[1,] 5.28559e-06

The F-test statistics (and chisqr) aren't computed for the intercept-only model, but this is expected (since the specified model is equivalent to the null model).

There is an annoying warning (unless do.chisqr.tests=FALSE) and some slots are filled with NaN - perhaps that should change. But I haven't been able to reproduce an outright error or failure.

from remoteparts.

arives avatar arives commented on June 2, 2024

Clay,

Sorry for being too brief before. Here is example code and output from macOS. Various changes don't help (e.g., nugget = 0, do.t.test = FALSE). I also did a FORCE install from github to make sure I'm working with the newest version.

It would be really strange if this were an issue only with MacOS, although I have a hard time imagining that this would be the case.

Cheers, Tony

fitGLS_partition(formula = CLS_coef ~ 1, partmat = pm,

  •                        data = df, do.t.test = TRUE, ncores = 1)
    
    |==========================================================| 100%

Coefficients:
(Intercept)
0.0001795086

Cross coefficients:
(Intercept)
(Intercept) 0.8083451

Cross-partition statistics:
rSSR rSSE Fstat
NaN 0.08683609 NaN
Warning message:
In fitGLS_partition(formula = CLS_coef ~ 1, partmat = pm, data = df, :
chisqr test not valid when formula == formula0

fitGLS_partition(formula = CLS_coef ~ 1, partmat = pm,

  •                        data = df, do.t.test = TRUE, ncores = 3)
    

Error in array(NA, dim = c(npairs, p, p), dimnames = list(NULL, names(object[[1]]$partGLS$coefficients), :
length of 'dimnames' [2] not equal to array extent

from remoteparts.

kelewinska avatar kelewinska commented on June 2, 2024

As far as i know Mac's have different kernel, so some functions could run differently, or not run at all. (?)

from remoteparts.

morrowcj avatar morrowcj commented on June 2, 2024

from remoteparts.

kelewinska avatar kelewinska commented on June 2, 2024

to ensure stability you could prepare a docker image with a desired environment.

from remoteparts.

arives avatar arives commented on June 2, 2024

Clay,

I just finished reinstalling R and all packages. Still no joy.

Was Ruusa getting this same error message? It seems a strange error if caused by packages not talking nicely to each other.

I'll ask Jamie to try on his Mac.

Tony

from remoteparts.

morrowcj avatar morrowcj commented on June 2, 2024

Thanks for this, guys. Based on Jamie's response (and the fact that the error occurred with Ruusa's machine, I'll keep looking for a solution.

@Erfea, I'd be interested in learning how to prepare a docker image. It was my impression that docker was a linux-only tool. Can Mac and Windows use it as well, or does it require a virtual machine?

from remoteparts.

morrowcj avatar morrowcj commented on June 2, 2024

@arives, what is the output for this code on your machine?

packageVersion("remotePARTS")

from remoteparts.

morrowcj avatar morrowcj commented on June 2, 2024

I've found the problem and I know how to fix it - just going to take some time to work out and code up.

from remoteparts.

arives avatar arives commented on June 2, 2024

from remoteparts.

arives avatar arives commented on June 2, 2024

from remoteparts.

kelewinska avatar kelewinska commented on June 2, 2024

Happy to hear you have found the core of the issue Clay.

regarding docker, it can be installed on all systems, thus provide transferability across platforms. A remotePARTS-specific docker container is on my ToDo list, but it will happen not before spring 2023. Happy to share it once the image will be defined and tested.
Cheers, Kasia

from remoteparts.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.