Displaying 20 results from an estimated 900 matches similar to: "Using nonlinear regression"
2005 Nov 17
1
Fitdistr()
When using fitdistr() with the exponential, log-normal and beta distributions,
you get the relevent rate, mean, standard deviation, shape1 and shape2 but
you get a number bellow those that are in () and I was wandering what exactly
those numbers represent and how they relate to the data.
Many thanks
Mark Miller
2005 Nov 02
5
Distribution fitting problem
I am using the MASS library function
fitdistr(x, dpois, list(lambda=2))
but I get
Error in optim(start, mylogfn, x = x, hessian = TRUE, ...) :
Function cannot be evaluated at initial parameters
In addition: There were 50 or more warnings (use warnings() to see the first
50)
and all the first 50 warnings say
1: non-integer x = 1.452222
etc
Can anyone tell me what I am doing
2008 Feb 18
4
newbie (me) needs to model distribution as two overlapping gaussians
Recently, I have been working with some data that look like two overlapping gaussian distributions. I would like to either
1) determine the mean and SD for each of the two distributions
OR
2) get some (bayesian ?) statistic that estimates how likely an observation is to belong to the left-hand or right-hand distribution
In case I'm using the wrong language, my data looks something like
2006 Jan 16
5
Dundi Examples
Can someone show me how to set up DUNDi, I will be using it to connect
14 asterisk servers internally. I don't want to use it on the external
world. If anyone has any examples of connecting 2 or 3 (if their is a
difference) machines in a DUNDi co-operation that would be helpful.
Johnathan Falk
Network Administrator
Clinton Community Schools
1999 Apr 14
2
character vector as input to function?
I would like to have a function that inputs a file name, then reads that
data file and does various stuff to it.
Something like:
doit<-function(filename)
{
x<-scan("~/rstuff/data/"filename)
#for example, if filename is a0.dat, it will scan("~/rstuff/data/a0.dat")
...
}
Can someone please tell me how to do this?
Thanks for any help!
Bill Simpson
2005 Aug 11
3
Demo Scripts on script.aculo.us
I have a suggestion for the demo scripts on the http://script.acolo.us
site. Currently only the source for ruby on rails is shown. I think it
would be beneficial for the site to also so how do it with just basic
html also.
Let me know what you guys think about this idea.
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
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,
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
2003 Jul 25
5
named list 'start' in fitdistr
Hi R lovers!
I'd like to know how to use the parameter 'start' in the function
fitdistr()
obviously I have to provide the initial value of the parameter to optimize
except in the case of a certain set of given distribution
Indeed according to the help file for fitdistr
" For the following named distributions, reasonable starting values
will be computed if `start'
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
2005 Jun 15
2
Reading Excel files...Error
hi,
i am using the RODBC package to read .xls files. now after i installed
the package and loaded the library and tried to read a file this is
the error i got.
>channel<-odbcConnect("D:/rstuff/1.xls")
Warning messages:
1: [RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name not found and no default driver specified
2: ODBC connection failed
2011 Aug 26
2
How to generate a random variate that is correlated with a given right-censored random variate?
Hi,
I have a right-censored (positive) random variable (e.g. failure times subject to right censoring) that is observed for N subjects: Y_i, I = 1, 2, ..., N. Note that Y_i = min(T_i, C_i), where T_i is the true failure time and C_i is the censored time. Let us assume that C_i is independent of T_i. Now, I would like to generate another random variable U_i, I = 1, 2, ..., N, which is
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 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.
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]]
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
2004 Dec 13
1
AIC, glm, lognormal distribution
I'm attempting to do model selection with AIC, using a glm and a lognormal
distribution, but:
fit1<-glm(BA~Year,data=pdat.sp1.65.04, family=gaussian(link="log"))
## gives the same result as either of the following:
fit1<-glm(BA~Year,data=pdat.sp1.65.04, family=gaussian)
fit1<-lm(BA~Year,data=pdat.sp1.65.04)
fit1
#Coefficients:
#(Intercept) Year2004
# -1.6341
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
2011 Nov 01
1
low sigma in lognormal fit of gamlss
Hi,
I'm playing around with gamlss and don't entirely understand the sigma
result from an attempted lognormal fit.
In the example below, I've created lognormal data with mu=10 and sigma=2.
When I try a gamlss fit, I get an estimated mu=9.947 and sigma=0.69
The mu estimate seems in the ballpark, but sigma is very low. I get similar
results on repeated trials and with Normal and
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