Giter Club home page Giter Club logo

mdm's Issues

methods for fitted objects

objects returned by fit_mdm() and fit_dm() should have methods including (at least):

  • print
  • coef
  • logLik
  • AIC
  • BIC
  • vcov

and possibly summary() ?

Error when phi = 0

At present the mdmParam building function would return Inf for all counts when \phi = 0. To avoid this we test that phi must be in (0,1]. We should probably do something special for the 0 case so we can have contibunuty between D-M and Multinomial models.

Errors fitting mixtures when some counts are very high

An example:

hets <- data.frame(
  ref = c(4260, 3161, 3166, 3152, 3167, 3744, 3536, 3908, 3420),
  alt = c(1800, 1239, 1331, 1327, 1380, 1892, 1673, 2033, 1761)
)
fit_mdm(hets,2)
Error in svd(X) : infinite or missing values in 'x'
In addition: Warning message:
In fit_mdm(X, 2) : Cycle 1: Log-Likelihood decreased by Inf!

traceback gives this... which looks an intermediate matrix is getting bad values

4: stop("infinite or missing values in 'x'")
3: svd(X)
2: ginv(Io)
1: fit_mdm(X, 2)

A little more sleuthing suggests this is occruing in mdmAugmentData but that's as far as I got.

Function for group assignment

It would be useful to have a utility function to calculate the probability that given observation belongs to a particular model-component.

This calculation is already performed as part of the EM algorithm , but should be exposed as a function for users.

Likelihoods don't include multinomial coefficient

Which means they aren't directly relatable to the outputs of dmultinom from base R.

This is not a problem for fitting the models, so we may simply need to document this difference rather than add the extra calculation.

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.