Displaying 19 results from an estimated 19 matches similar to: "fitting a mixture of distributions with optim and max log likelihood ?"
2004 Jul 01
2
Individual log likelihoods of nlsList objects.
Hello all.
I was wondering if the logLike.nls() and logLike.nlme() functions are still
being used. Neither function seems to be available in the most recent
release of R (1.9.1). The following is contained in the help file for
logLik(): "classes which already have methods for this function include:
'glm', 'lm', 'nls' and 'gls', 'lme' and others in
2001 Jan 09
3
log(0) problem in max likelihood estimation
This practical problem in maximum likelihood estimation must be
encountered quite a bit. What do you do when a data point has a
probability that comes out in numerical evaluation to zero? In calculating
the log likelihood you then have a log(0) problem.
Here is a simple example (probit) which illustrates the problem:
x<-c(1,2,3,4,100)
ntrials<-100
yes<-round(ntrials*pnorm((x-3)/1))
2008 Mar 11
1
messages from mle function
Dears useRs,
I am using the mle function but this gives me the follow erros that I
don't understand. Perhaps there is someone that can help me.
thank you for you atention.
Bernardo.
> erizo <- read.csv("Datos_Stokes_1.csv", header = TRUE)
> head(erizo)
EDAD TALLA
1 0 7.7
2 1 14.5
3 1 16.9
4 1 13.2
5 1 24.4
6 1 22.5
> TAN <-
2006 Mar 31
1
loglikelihood and lmer
Dear R users,
I am estimating Poisson mixed models using glmmPQL
(MASS) and lmer (lme4). We know that glmmPQL do not
provide the correct loglikelihood for such models (it
gives the loglike of a 'pseudo' or working linear
mixed model). I would like to know how the loglike is
calculated by lmer.
A minor question is: why do glmmPQL and lmer give
different degrees-of-freedom for the same
2012 Jul 03
2
EM algorithm to find MLE of coeff in mixed effects model
I have a general question about coefficients estimation of the mixed model.
I simulated a very basic model: Y|b=X*\beta+Z*b +\sigma^2* diag(ni);
b follows
N(0,\psi) #i.e. bivariate normal
where b is the latent variable, Z and X are ni*2 design matrices, sigma is
the error variance,
Y are longitudinal data, i.e. there are ni
2012 Nov 05
1
Error message in nmkb()
Hallo together,
I am trying to use the nmkb() optimizer and I have problems using the
function, as it causes the following error message
Fehler (error)* in while (nf < maxfeval & restarts < restarts.max & dist >
ftol & :
Fehlender Wert (missing value)* , wo (where)* TRUE/FALSE n?tig ist (is
required)*
*translation
Do I need to adjust the control ?
2002 Nov 27
1
[No Subject]
Hi,I try to calcualte AIC or Loglik to GARCH model,But the Packege Tseries do not deal with them.How can I calculate AIC or Loglike to GARCH Model By Packege Tseries?
Thanks.
____________________________________________________
Free Internet Access NOW!
In Alexandria, Ismaileya, Suez, Portsaid, Hurgadha, Sharm
Banha, Shebin El-Kom, Damietta,
Tanta, Zagazig, Mansoura, Damanhour, Assyout, Qena
2007 May 29
1
Help with optim
Dear Friends,
I'm using the optim command to maximize a likelihood function. My optim command is as follows
estim.out <- optim(beta, loglike, X=Xmain, Y=Y, hessian=T, method="BFGS", control=c(fnscale=-1, trace=1, REPORT=1))
Setting the report=1, gives me the likelihood function value (if i'm correct) at each step. The output from running this is as follows
initial value
2005 Oct 19
1
nlme Singularity in backsolve at level 0, block 1
Hi,
I am hoping some one can help with this.
I am using nlme to fit a random coefficients model. It ran for hours before returning
Error: Singularity in backsolve at level 0, block 1
The model is
> plavix.nlme<-nlme(PLX_NRX~loglike(PLX_NRX,PD4_42D,GAT_34D,VIS_42D,MSL_42D,SPE_ROL,XM2_DUM,THX_DUM,b0,b1,b2,b3,b4,b5,b6,b7,alpha),
+ data=data,
+ fixed=list(b0 +
2006 Aug 22
1
a generic Adaptive Gauss Quadrature function in R?
Hi there,
I am using SAS Proc NLMIXED to maximize a likelihood with
multivariate normal random effects. An example is the two part random
effects model for repeated measures semi-continous data with a
cluster at 0. I use the "model y ~ general(loglike)" statement in
Proc NLMIXED, so I can specify a general log likelihood function
constructed by SAS programming statements. Then the
2004 Jul 03
2
DSTEIN error (PR#7047)
Full_Name: Stephen Weigand
Version: 1.9.0
OS: Mac OS X 10.3.4
Submission from: (NULL) (68.115.89.235)
When running an iteratively reweighted least squares program R crashes and the
following is
written to the console.app (when using R GUI) or to stdout (when using R from
the command
line):
Parameter 5 to routine DSTEIN was incorrect
Mac OS BLAS parameter error in DSTEIN, parameter #0,
2012 Nov 04
1
Struggeling with nlminb...
Hallo together,
I am trying to estimate parameters by means of QMLE using the nlminb
optimizer for a tree-structured GARCH model. I face two problems.
First, the optimizer returns error[8] false convergence if I estimate the
functions below. I have estimated the model at first with nlm without any
problems, but then I needed to add some constraints so i choose nlminb.
2012 Jul 03
0
need help EM algorithm to find MLE of coeff in mixed effects model
Dear All,
have a general question about coefficients estimation of the mixed model.
I simulated a very basic model: Y|b=X*\beta+Z*b +\sigma^2* diag(ni);
b follows
N(0,\psi) #i.e. bivariate normal
where b is the latent variable, Z and X are ni*2 design matrices, sigma is
the error variance,
Y are longitudinal data, i.e. there are ni
2001 Aug 28
2
Estimating Weibull Distribution Parameters - very basic question
Hello,
is there a quick way of estimating Weibull parameters for some data points
that are assumed to be Weibull-distributed?
I guess I'm just too lazy to set up a Maximum-Likelihood estimation...
...but maybe there is a simpler way?
Thanks for any hint (and yes, I've read help(Weibull) ;)
Kaspar Pflugshaupt
--
Kaspar Pflugshaupt
Geobotanical Institute
ETH Zurich, Switzerland
2008 Sep 27
0
compute posterior mean by numerical integration
Dear R useRs,
i try to compute the posterior mean for the parameters omega and beta
for the following
posterior density. I have simulated data where i know that the true
values of omega=12
and beta=0.01. With the function postMeanOmega and postMeanBeta i wanted
to compute
the mean values of omega and beta by numerical integration, but instead
of omega=12
and beta=0.01 i get omega=11.49574 and
2002 Apr 05
2
weighted 2 or 3 parameter weibull estimation?
I've figured out how to use optim (barely) to estimate 2 parameter =
weibull distributions. I can't get over how easy this is. What I need to =
do is use a weight in the observations.....
For example,=20
the tree diameters and weights are are=20
4.70 , 100
6.00, 98
7.10, 75.0
8.10, 86.3
8.60, 80.456
8.90, 20.5
9.50, 16.6
11.40, 12.657
11.80, 12.47
14.50,
2006 Jan 02
2
mixed effects models - negative binomial family?
Hello all,
I would like to fit a mixed effects model, but my response is of the
negative binomial (or overdispersed poisson) family. The only (?)
package that looks like it can do this is glmm.ADMB (but it cannot
run on Mac OS X - please correct me if I am wrong!) [1]
I think that glmmML {glmmML}, lmer {Matrix}, and glmmPQL {MASS} do
not provide this "family" (i.e. nbinom, or
2004 Nov 09
1
Some questions to GLMM
Hello all R-user
I am relative new to the R-environment and also to GLMM, so please don't be
irritated if some questions don't make sense.
I am using R 2.0.0 on Windows 2000.
I investigated the occurrence of insects (count) in different parts of
different plants (plantid) and recorded as well some characteristics of the
plant parts (e.g. thickness). It is an unbalanced design with 21
2017 Mar 07
0
Potential clue for Bug 16975 - lme fixed sigma - inconsistent REML estimation
Dear list,
I was trying to create a VarClass for nlme to work with Fay-Herriot
(FH) models. The idea was to create a modification of VarComb that
instead of multiplying the variance functions made their sum (I called
it varSum). After some fails etc... I found that the I was not getting
the expected results because I needed to make sigma fixed. Trying to
find how to make sigma fixed I run into