Comments (10)
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.
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.
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.
Hi Anders,
I get the same error. What else can I check also?
Best,
Muyao
from alasca.
You can take a look at the score data table itself with ALASCA_model$ALASCA$score
which contains all the PCs calculated
from alasca.
I can get the data table after running ALASCA_model$ALASCA$score
as shown in the image above.
Best,
Muyao
from alasca.
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.
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.
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.
Hi Ander,
It works now.
Thanks for your help
Best,
Muyao
from alasca.
Related Issues (11)
- Some errors applying ALASCA to longitudinal (repeat measures) microbial counts HOT 4
- ID error in cross-sectional analysis HOT 3
- Error in ALASCA with scale_function = "none" HOT 3
- type="covars" gives error while plotting the ALASCA object HOT 4
- Error in eigen(w1) : infinite or missing values in 'x' error when validation method is chosen HOT 3
- Error: Mat::init() HOT 2
- object of type 'closure' is not subsettable HOT 2
- Plot function prnts output as showing x number of variables, but not actually HOT 2
- Problems with adding random slopes to the model. HOT 1
- Plotting not working in example in "Getting Started".
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alasca.