Sorry Jim I forgot to reply on what I am trying to do.I have many data sets
that contain some numbers: I am trying to fit those with a mixture
distribution. For that I am using the mix function that returns me back the
fitted parameters and the chi square (which is a first performance
indicato
Hi,thanks all for the answer.I am using mclapply to call the lapply many times
as needed. My function returns only a value if the fit is succesful.For testing
if the fit is sucessfuly my code works like that
fitcass1<-tryCatch(mix(mixdat=mydataOnVector,mixpar=params,dist=distribution),error=funct
You store it as a list of lists and can then use the lapply function
to navigate for values.
result <- lapply(1:1, function(x){
mix(param[x]) # whatever your call to 'mix' is with some data
})
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me wha
On 26/02/2015 9:27 AM, Alaios via R-help wrote:
Dear all,in my code I am using the mix() function that returns results in a
list. The result looks like
List of 10
$ parameters :'data.frame': 2 obs. of 3 variables:
..$ pi : num [1:2] 0.77 0.23
..$ mu : num [1:2] -7034 162783
..
Dear all,in my code I am using the mix() function that returns results in a
list. The result looks like
List of 10
$ parameters :'data.frame': 2 obs. of 3 variables:
..$ pi : num [1:2] 0.77 0.23
..$ mu : num [1:2] -7034 162783
..$ sigma: num [1:2] 20235 95261
$ se :'data.f
5 matches
Mail list logo