[R] mixture distribution with positive and negative probabilities

2012-06-26 Thread Yakir Gagnon
Hi!
Any ideas on which package (e.g. mixdist, flexmix, etc) how I could fit a
mixture of say 3 Gaussian functions where 2 have their proportions, means,
and sigmas, and the third has a mean, sigma but a negative proportion.
Basically I'm trying to fit a mixture model to a distribution that
I know is the sum of 3 distributions, where one inhibits the other two. Is
there such a thing?
Thanks in advance!

Yakir Gagnon
cell+1 919 886 3877
office +1 919 684 7188
Johnsen Lab
Biology Department
Box 90338
Duke University
Durham, NC 27708
BioSci Building
Room 307
http://fds.duke.edu/db/aas/Biology/postdoc/yg32
http://www.biology.duke.edu/johnsenlab/people/yakir.html

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] compare between mixdist models

2012-06-25 Thread Yakir Gagnon
Hi all!
Is there any way to compare mixdist models with a different number of
components using AIC or BIC?
I'm looking for some similar functionality as in flexmix, but not sure
which to stick with: mixdist or flexmix..

Yakir Gagnon
cell+1 919 886 3877
office +1 919 684 7188
Johnsen Lab
Biology Department
Box 90338
Duke University
Durham, NC 27708
BioSci Building
Room 307
http://fds.duke.edu/db/aas/Biology/postdoc/yg32
http://www.biology.duke.edu/johnsenlab/people/yakir.html

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] install package mixdist

2012-06-21 Thread Yakir Gagnon
Hi all,
I'm trying to install the mixdist package with:

install.packages("mixdist")


But I'm getting the following errors:

* installing *source* package ‘mixdist’ ...
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'bindat.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'binpar.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'cassie.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'expdat.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'fiftn80.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'normals.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pearson.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pearsonpar.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pikdat5.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pike65.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pike65sg.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pikepar.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'pikeraw.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'poisdat.txt' not found
Warning in utils::data(list = f, package = package, lib.loc = lib.loc,
envir = dataEnv) :
data set 'poispar.txt' not found
* DONE (mixdist)


I'm on an Ubuntu 10.04 LTS (Lucid Lynx) 64 with R 2.10.1
How can I fix this?
Thanks in advance!!!

Yakir Gagnon
cell+1 919 886 3877
office +1 919 684 7188
Johnsen Lab
Biology Department
Box 90338
Duke University
Durham, NC 27708
BioSci Building
Room 307
http://fds.duke.edu/db/aas/Biology/postdoc/yg32
http://www.biology.duke.edu/johnsenlab/people/yakir.html

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.