Giter VIP home page Giter VIP logo

bahz's People

Contributors

tjthurman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dongyiyi

bahz's Issues

Helper function for starting Stan

In particular, need it to help proide initial values, as it doesn't seem to be working with random generation. Stan randomly generates initial values "between -2 and 2 on the unconstrained support". Not really sure what that means, but seems bad given that a bunch of my parameters can't be random numbers.

Ideally, it would just draw a random number from the prior distribution. That might be a little tough to implement, could take some matching to the yaml. But, if I could make it generate the expression for one chain, I could just copy that expression somehow for multiple chains.

Plotting function?

A function that plots a cline, given cline parameters and an x range? Wouldn't be too hard to build off the gen_cline_equation function.

Center the center parameter at 0 for estimation?

Might ease initialization. Could add the mean value back to the results in the chain, to preserve the user-supplied values. Need to see if Stan would work with the center = 0 check removed.

Function renaming?

Some ideas to unify fxn names, and prep for future pheno cline implementation:

prepping functions:

load_cline_data -> prep_geno_data DONE
make_init_list -> prep_init_list DONE
make_prior_list -> prep_prior_list DONE

Main user functions:

fit_cline -> fit_geno_cline DONE
sim_data_from_cline -> sim_geno_cline DONE

allow f to be <0?

Could I allow f to be <0, for an excess of heterozygotes?. Only issue would be if it tried to make a genotype category be more than 1 of less than 0

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.