Displaying 20 results from an estimated 2000 matches similar to: "fitting a confined mixture model"
2009 Nov 09
1
model based clustering with flexmix
Hello all,
I am trying to fit a truncated mixture model and I wrote a driver for
flexmix following the example in the vignette, but it doesn't work for
me: it assigns all data points to one component only, e.g.:
> > source('bugged.R')
>
> Call:
> flexmix(formula = x ~ 1, k = 2, model = truncatedmodel(lower = -4,
> upper = 4))
>
> prior size
2012 Mar 05
1
Fitting & evaluating mixture of two Weibull distributions
Hello,
I would like to fit a mixture of two Weibull distributions to my data, estimate the model parameters, and compare the fit of the model to that of a single Weibull distribution.
I have used the mix() function in the 'mixdist' package to fit the mixed distribution, and have got the parameter estimates, however, I have not been able to get the log-likelihood for the fit of this model
2009 Jun 13
1
Fitting Mixture of Non-Central Student's t Distributions
Dear all,
I am attempting to model some one-dimensional data using a mixture model
of non-central Student's t distributions. However, I haven't been able
to find any R package that provides this functionality.
Could there be a way to "manipulate" the EM algorithms from the mixdist
or mixtools package to fit the model, or do you have any other
suggestions?
If anyone could help
2011 Feb 28
1
mixture models/latent class regression comparison
Dear list,
I have been comparing the outputs of two packages for latent class
regression, namely 'flexmix', and 'mmlcr'. What I have noticed is that
the flexmix package appears to come up with a much better fit than the
mmlcr package (based on logLik, AIC, BIC, and visual inspection). Has
anyone else observed such behaviour? Has anyone else been successful
in using the mmlcr
2011 Aug 25
1
How to combine two learned regression models?
Hi All,
I have a set of features of size p and I would like to separate my feature space into two sets so that p = p1 + p2, p1 is a set of features and p2 is another set of features and I want to fit a glm model for each sets of features separately. Then I want to combine the results of two glm models with a parameter beta. For example, beta * F(p1) + (1-beta) * F(p2) where F(p1) is a learned
2011 Feb 02
2
clustering with finite mixture model
Dear R-help,
I am doing clustering via finite mixture model. Please suggest some packages in
R to find clusters via finite mixture model with continuous variables. And
also I wish to verify the distributional properties of the mixture distributions
by fitting the model with lognormal, gamma, exponentials etc,.
Thanks in advance,
warm regards,Ms.Karunambigai M
PhD Scholar
Dept. of Biostatistics
2013 Mar 18
2
Fit a mixture of lognormal and normal distributions
Hello
I am trying to find an automated way of fitting a mixture of normal and log-normal distributions to data which is clearly bimodal.
Here's a simulated example:
x.1<-rnorm(6000, 2.4, 0.6)x.2<-rlnorm(10000, 1.3,0.1)X<-c(x.1, x.2)
hist(X,100,freq=FALSE, ylim=c(0,1.5))lines(density(x.1), lty=2, lwd=2)lines(density(x.2), lty=2, lwd=2)lines(density(X), lty=4)
Currently i am using
2009 Aug 06
0
Fitting Mixture of Non-Central Student's t Distributions
Dear Ingmar & Dave,
Thanks a lot for your help and sorry for the late reply.
Finally, I've found a way to separate the mixture of distributions
(empirically). But the gamlss package looks great, I'm sure it will help
me during my further studies.
Kind regards,
Susanne
On 15 Jun 2009, at 20:09, Ingmar Visser wrote:
> Dear Susanne & Dave,
>
> The gamlss package family
2005 Sep 08
1
clustering: Multivariate t mixtures
Hi,
Before I write code to do it does anyone know of code for fitting
mixtures of multivariate-t distributions.
I can't use McLachan's EMMIX code because the license is "For non
commercial use only".
I checked, mclust and flexmix but both only do Gaussian.
Thanks
Nicholas
2007 Nov 08
1
finite mixture model (or latent class)
Dear Listers,
My post might be somewhat OT.
Currently, I am trying to use flexmix to build a finite mixture model.
For instance, I am getting the prior probability and coefficients for
each latent class from training data. Is there a way to get the
posterior probablity and prediction of a new dataset?
What I am thinking is to apply the prior prob and coefficient from
training set to testing data
2005 Apr 12
1
R Package: mmlcr and/or flexmix
Greetings
I'm a relatively new R user and I'm trying to build a latent class model.
I've used the 'R Site Search' and it appears there's not much dialogue on
these packages
On mmlcr, I've gotten it working, but not sure if I'm using it correctly.
On flexmix, I can only seem to get results for one class.
I'm attaching my code below - if anyone
2006 Mar 21
0
finite mixture model, using flexmix
Dear R-users,
I would like to use the package flexmix to fit latent classes to a
regression model. My data are repeated measurements of bernouilli
variables so I can use the binomial family link to the glm function. The
design is not balanced, meaning that for some individuals in my data set
I have 10 measurements or more, for others I only have 5 or even less.
My question is the following. Can
2011 Mar 01
1
Problem on flexmix when trying to apply signature developed in one model to a new sample
Problem on flexmix when trying to apply signature developed in one model to a new sample.
Dear
R Users, R Core Team,
I have a problem when trying to know the
classification of the tested cases using two variables with the function of flexmix:
After importing the database and creating
a matrix:
BM<-cbind(Data$var1,Data$var2)
I see that the best model has 2 groups and
use:
ex2
2011 Feb 28
0
Gamma mixture models with flexmix
I've been trying with no success to model mixtures of Gamma distributions using
the package flexmix (see examples below). Can anyone help me get it to model
better? Thanks very much.
-Ben
##
## Please help me get flexmix to correctly model mixtures of
## Gamma distributions. See examples below.
##
library('flexmix')
##
## Plot a histogram of dat and the Gamma mixture model given
2007 Feb 08
1
smartpred depends on fitted() in flexmix?
Hi,
I was going through the examples in smartpred. It seems there's an
unstated dependency on the fitted() function in package flexmix.
n = 20
set.seed(86)
x = sort(runif(n))
y = sort(runif(n))
library(splines)
fit = lm(y ~ ns(x, df=5))
plot(x, y)
lines(x, fitted(fit)) # won't work w/o prior loading of the flexmix
package.
newx = seq(0, 1, len=n)
points(newx, predict(fit,
2008 Oct 28
1
Marginal effects in negative binomial
Dear All,
I carry out negative binomial estimations using the glm.nb command from the MASS package.
Is there a command or a simple procedure for computing marginal effects from a glm.nb fitted object?
If these are the same as for a Poisson fitted object (glm), my question remains how to compute them.
Thanks in advance for your help.
Roberto Patuelli
********************
Roberto Patuelli, Ph.D.
2013 Apr 23
2
flexmix
Hi,
I am trying to understand how to use the flexmix package, I have read the Leisch paper but am very unclear what is needed for the M-step driver. I am just fitting a simple linear regression model. The documentation is far from clear what the FLXmclust function does, but, it in principle could do all I need, however, I do not get sentible results as if I try the following the result is poor:
2009 Nov 25
1
fitting mixture of normals distribution to asset return data
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091125/6a78f78b/attachment-0001.pl>
2008 Oct 03
1
Problem with glm.nb estimation
Dear All,
I've been using already for a year glm.nb() from the MASS package.
But today, R gave me an error message when estimating one of my usual
models:
> depEsf.nb <- glm.nb(depE ~ manuf00E + corps00E + lngdp00E + lngdp00sqE +
> lnpop00E + indshE + scishE + mechshE + elecshE + chemshE + drugshE +
> urban_dummyE + aggl_dummyE
+ + eE1 + eE2 + eE3 + eE4 + eE5 + eE6 + eE7 +
2012 Oct 30
1
Data set BregFix in package flexmix
Dear list:
I would like to recreate how the artificial data set BregFix was generated
in package flexmix (thanks Bettina and Friedrich). The data set is
thoroughly described in Grun and Leisch's Computational Statistics & Data
Analysis 51(11) :5247-5252 but references to the appropriate seed number(s)
are missing (providing these details was certainly beyond the scope of the
authors'