Comments (5)
Hi @GACGAMA,
Thanks for reaching out. When fitting the null model for binary outcomes, please use family=binomial(link="logit")
instead of family=gaussian(link="identity")
. Also, it is generally recommended to code your phenotype variable as 0/1 numerical values for control/case status instead of factor values.
Best,
Xihao
from staarpipeline-tutorial.
Converting the outcome to 0/1 and using binomial(link="logit") did work, thanks Xihao!
For some covariables, I get the following error with the STAAR fitnull:
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'chol2inv': LAPACK routine 'dpotrf': leading principal minor of order 4 is not positive
Do you have any suggestions for this?
from staarpipeline-tutorial.
Could I ask what you mean by covariables? Are they "outcomes" or "covariates"?
from staarpipeline-tutorial.
Sorry, I meant covariates. I think the error means that my covariates don't have enough variance for the model to converge or something like that. My dataset is pretty small (60 WGS samples).
from staarpipeline-tutorial.
Hi @GACGAMA,
Thanks for clarifying. Yes, you are correct. Generally, the null model fitting step is more prone to convergence issues for very small datasets, since the number of observations (e.g. n = 60) may not be sufficiently larger than the number of parameters in the model.
Best,
Xihao
from staarpipeline-tutorial.
Related Issues (20)
- fit_nullmodel Output is mostly Null and 0 HOT 16
- Error in Gene Centric Analysis HOT 1
- Error in results_plof_genome[, "cMAC"] : subscript out of bounds HOT 2
- Followup Question to Issue #28 HOT 2
- STAARpipeline_Gene_Centric_Noncoding HOT 2
- Dynamic Window dim(X) error HOT 3
- Can't annotate individual variant results HOT 2
- [Suggestion-Implementation] Add information to summary and annotations of results HOT 1
- Conditional analysis - Summary Gene Centric Noncoding not running to completion HOT 6
- Ukbiobank Agds files generation HOT 16
- Plots for gene centric ncRNA regions HOT 5
- FATAL ERROR - Too many first alleles as the major allele (~21.5%). HOT 1
- warning messages in generating the annotated GDS (aGDS) file. HOT 3
- Controls / cases counts inverted when using binary model HOT 7
- kinship matrix HOT 2
- variant set in gene-centric coding/noncoding analysis HOT 2
- in the Step 2: Individual (single-variant) analysis, Error in if (chr == 1) { : argument is of length zero HOT 3
- Error : Mat::operator(): index out of bounds & Error in apply(emthr_SCANG_O, 2, max) : HOT 1
- What is the difference between the "results_temp" and "results_m" results? HOT 1
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 staarpipeline-tutorial.