Displaying 20 results from an estimated 800 matches similar to: "AIC, glm, lognormal distribution"
2009 Sep 07
1
Omnibus test for main effects in the face of an interaction containing the main effects.
R 2.9.1
Windows XP
I am fitting a random effects ANOVA with two factors Group which has two levels and Time which has three levels:
fita<-lme(Post~Time+factor(Group)+factor(Group)*Time, random=~1|SS,data=blah$alldata)
I want to get the omnibus significance tests for each factor and the interaction. I believe I can get the omnibus test for the interaction by running the model:
2009 Sep 08
3
Omnibus test for main effects in the face ofaninteraction containing the main effects.
Daniel,
When Group is entered as a factor, and the factor has two levels, the
ANOVA table gives a p value for each level of the factor. What I am
looking for is the omnibus p value for the factor, i.e. the test that
the factor (with all its levels) improves the prediction of the outcome.
You are correct that normally one could rely on the fact that the model
2018 Apr 25
1
Can't Get Lattice Histogram Minor Tick Marks to Work
Thanks Jeff,
I attached a file with the program to my earlier email because the posting guide seemed to imply that non-binary attachments would work. But I see that the file was stripped off.
I installed the program file on a web site, but when I downloaded it, the line breaks were stripped out. So I've included the program below:
-------------------------------------------------------
#
2012 Oct 05
2
problem with convergence in mle2/optim function
Hello R Help,
I am trying solve an MLE convergence problem: I would like to estimate
four parameters, p1, p2, mu1, mu2, which relate to the probabilities,
P1, P2, P3, of a multinomial (trinomial) distribution. I am using the
mle2() function and feeding it a time series dataset composed of four
columns: time point, number of successes in category 1, number of
successes in category 2, and
2007 Jul 26
2
logistic regression
Greetings,
I am working on a logistic regression model in R and I am struggling with the code, as it is a relatively new program for me. In searching Google for 'logistic regression diagnostics' I came Elizabeth Brown's Lecture 14 from her Winter 2004 Biostatistics 515 course (http://courses.washington.edu/b515/l14.pdf) . I found most of the code to be very helpful, but I am
2009 Feb 12
2
Problem with lmer and wiki example
I am trying to duplicate the example by Spencer Graves in the wiki,
using lmer with the Nozzle data.
http://wiki.r-project.org/rwiki/doku.php?id=guides:lmer-tests
However the Chisq value and the fitAB values that are calculated are
different compared to those in the example. I also get a warning message
when I attempt the fitAB. Does anyone have any guidance as to why this
might happen and how
2007 Sep 07
1
How to obtain parameters of a mixture model of two lognormal distributions
Dear List,
I have read that a lognormal mixture model having a pdf of the form
f(x)=w1*f1(x)+(1-w1)*f2(x) fits most data sets quite well, where f1
and f2 are lognormal distributions.
Any pointers on how to create a function that would produce the 5
parameters of f(x) would be greatly appreciated.
> version
_
platform i386-pc-mingw32
arch i386
os
2009 May 29
1
Mean of lognormal in base-2
Hi, Does anyone know what the mean value of a lognormal distribution in base-2 is? I am simulating stochastic population growth and if I were working in base-e, I would do:lambda <- 1.1 #multiplicative growth rates <- 0.6 #stochasticity (std. dev)lognormal <- rlnorm(100000, log(lambda) - (s^2)/2, s)## or lognormal <- exp( rnorm( 100000, log(lambda) - (s^2)/2,
2010 Dec 27
3
Gamma & Lognormal Model
Dear,
I'm very new to R Gui and I have to make an assignment on Gamma Regressions.
Surfing on the web doesn't help me very much so i hope this forum may be a
step forward.
The question sounds as follows:
The data set is in the library MASS
first install library(MASS)
then type data(mammals)
attach(mammals)
Assignment:
Fit the gamma model and lognormal model for the mammals data.
2006 Aug 05
1
AIC for lognormal model
Dear all,
I want to compare some different models for a dataset by QQ plots and AIC. I get the following AICs:
- linear model: 19759.66
- GAMLSS model: 18702.7
- linear model with lognormal response: -7862.182
The QQ plots show that the lognormal model fits better than the linear model, but still much worse than the GAMLSS. So, in my opinion, the AIC of the lognormal model should be between the
2007 Mar 23
1
generating lognormal variables with given correlation
Dear R users
I use simulated data to evaluate a model by sampling the parameters in
my model from lognormal distributions.
I would like these (lognormal distributed) parameters to be correlated,
that is, I would like to have pairwise samples of 2 parameters with a
given correlation coefficient.
I have seen that a covariance matrix can be fixed when generating random
variables from a
2010 Aug 01
2
Lognormal distribution - Range Factor
Hi, What does it mean to say Lognormal distribution with a mean of 1.03E-6
with a range factor of 100 ? How can I find the lognormal distribution
paramters from this information?
Thanks, Tims
[[alternative HTML version deleted]]
2003 Apr 09
3
plotting the lognormal density curve
I am trying to plot a lognormal density curve on top of an existing
histogram. Can anybody suggest a simple way to do this? Even if someone
could just explain how to plot a regular normal density curve on top of an
existing histogram, it would be a big help.
Also, is there some way to search through the R-help archives other than
simple browsing?
Thank you so much. Your help and time is greatly
2009 Jan 16
3
Fitting of lognormal distribution to lower tail experimental data
Hi,
I am beginner with R and need firm guidance with my problem. I have seen
some other threads discussing the subject of right censored data, but I am
not sure whether or not this problem can be regarded as such.
Data:
I have a vector with laboratory test data (strength of wood specimens,
example attached as txt-file). This data is the full sample. It is a
common view that this kind of data
2008 Feb 22
1
fitting a lognormal distribution using cumulative probabilities
Dear all,
I'm trying to estimate the parameters of a lognormal distribution fitted
from some data.
The tricky thing is that my data represent the time at which I recorded
certain events. However, in many cases I don't really know when the event
happened. I' only know the time at which I recorded it as already happened.
Therefore I want to fit the lognormal from the cumulative
2010 Mar 26
1
Poisson Lognormal
Hi R Users,
I'm going to estimate via. ML the parameters in Poisson Lognormal
model. The model is:
x | lambda ~ Poisson(lambda)
lambda ~ Lognormal(a,b)
Unfortunately, I haven't found a useful package allowing for such
estimation. I tried to use "poilog" package, but there is no equations
and it's hard to understand what exactly this package really does.
Using it I get the
2002 Dec 10
1
Lognormal distribution
I am trying to fit a lognormal distribution to a set of data and test its
goodness of fit with regard to predicted values.
I managed to get so far:
> y <- c(2,6,2,3,6,7,6,10,11,6,12,9,15,11,15,8,9,12,6,5)
> library(MASS)
> fitdistr(y,"lognormal",start=list(meanlog=0.1,sdlog=0.1))
meanlog sdlog
1.94810515 0.57091032
(0.12765945) (0.09034437)
But I would
2011 Nov 02
1
Lattice plots and missing x-axis labels on second page
Hello,
I'm trying to make a lattice plot (using xyplot()). I have included a
"layout=c(3,4)" statement, giving me 12 plots per page and an
"as.table=TRUE" statement, directing the way the plots are laid out. I
have 18 plots altogether and so 6 of them end up on the second page.
Everything looks fine for the first page, but the x-axis labels (e.g.
1993, 1994...) are all
2004 May 01
2
Generating Lognormal Random variables (PR#6843)
Full_Name: Anthony Gichangi
Version: 1.90
OS: Windows XP Pro
Submission from: (NULL) (130.225.131.206)
The function rlnorm generates negative values for lognormal distribution.
x- rlnorm(1000, meanlog = 0.6931472, sdlog = 1)
Regards
Anthony
2005 Sep 27
1
Producing empirical bayes estimates in disease mapping for lognormal model
I'm trying to produce empirical bayes estimates based on the lognormal
model in disease mapping
Is there a way this can be done in R?
thanks
Oarabile