Giter VIP home page Giter VIP logo

Comments (10)

andjar avatar andjar commented on August 23, 2024

Hi @MuyaoXi9271,

Thanks for reporting this issue. I am not able to replicate the error. What version of ALASCA are you using? What settings do you use?

Best,
Anders

from alasca.

MuyaoXi9271 avatar MuyaoXi9271 commented on August 23, 2024

Hi Anders,

The version I used is 1.0.14.

ALASCA_model <- ALASCA(df_l, formula = value ~ visit*group + (1|subject), scale_function = "sdall", validate = TRUE, filepath = paste0(path_outputs$POS, "/ALASCA"), save = TRUE)

Thanks for your quick reply.

Best,
Muyao

from alasca.

andjar avatar andjar commented on August 23, 2024

Hi,

Thank you for the additional information. I am still unable to reproduce the error using the Example 2 dataset in our paper and your settings. Is visit a factor variable? Do you get any output with ALASCA_model$get_scores(component = c(1,2))?

Best,
Anders

from alasca.

MuyaoXi9271 avatar MuyaoXi9271 commented on August 23, 2024

Hi Anders,

I get the same error. What else can I check also?

Best,
Muyao

from alasca.

andjar avatar andjar commented on August 23, 2024

You can take a look at the score data table itself with ALASCA_model$ALASCA$score which contains all the PCs calculated

from alasca.

MuyaoXi9271 avatar MuyaoXi9271 commented on August 23, 2024

image

I can get the data table after running ALASCA_model$ALASCA$score as shown in the image above.

Best,
Muyao

from alasca.

andjar avatar andjar commented on August 23, 2024

Thank you. I have no experience using the tibble package but perhaps it is interfering in some way (since this print looks like tibble)? I guess you can try mod$ALASCA$score[[1]] <- as.data.table(mod$ALASCA$score[[1]]) and then try to plot again, just to ensure that the data tables actually are data table objects

from alasca.

MuyaoXi9271 avatar MuyaoXi9271 commented on August 23, 2024

I try mod$ALASCA$score[[1]] <- as.data.table(mod$ALASCA$score[[1]]) and mod$ALASCA$score <- as.data.table(mod$ALASCA$score[[1]]) (I use the function as.data.table from package data.table)

I still have the same error when I plot it.

Best,
Muyao

from alasca.

andjar avatar andjar commented on August 23, 2024

Strange! Can you check that it is indeed a data table? is.data.table(ALASCA_model$ALASCA$score[[1]])

So, the issue here is that - with data.table - we can select the appropriate rows with self$ALASCA$score[[effect_i]][PC %in% component] (where self is the model object) - this is the code in the get_scores function that throws the error. But there is something preventing this selection to work. We can, however, see that the data table exists and has a column called PC

from alasca.

MuyaoXi9271 avatar MuyaoXi9271 commented on August 23, 2024

Hi Ander,

It works now.

Thanks for your help

Best,
Muyao

from alasca.

Related Issues (11)

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.