Giter VIP home page Giter VIP logo

Comments (5)

xihaoli avatar xihaoli commented on September 25, 2024

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.

GACGAMA avatar GACGAMA commented on September 25, 2024

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.

xihaoli avatar xihaoli commented on September 25, 2024

Could I ask what you mean by covariables? Are they "outcomes" or "covariates"?

from staarpipeline-tutorial.

GACGAMA avatar GACGAMA commented on September 25, 2024

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.

xihaoli avatar xihaoli commented on September 25, 2024

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)

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.