Displaying 14 results from an estimated 14 matches for "negloglike".
Did you mean:
negloglik
2009 Aug 20
1
Understanding R code
What is
1. par.ests <- optimfit$par
2. fisher <- hessb(negloglik, par.ests, maxvalue=maxima);
3. varcov <- solve(fisher);
4. par.ses <- sqrt(diag(varcov));
Thanks a lot,
fit.GEV <- function(maxima)
{
sigma0 <- sqrt((6. * var(maxima))/pi)
mu0 <- mean(maxima) - 0.57722 * sigma0
xi0 <- 0.1
theta <- c(xi0, mu0, sigma0)
#10/5/2007: removed assign() for maxima.nl
2009 Jul 02
1
Quantitative Risk Management by McNeil
Dear Specialists in R,
May be somebody has experiment in using pakage for the book Quantitative
Risk Management by McNeil?
This package is writen in R.
I have run this package for fitting the data to Nornal Inverse Gaussian
distribution and fased with following problem.
> Return<-read.csv("data.csv")
> Transpose<-t(Return)
> fit.NH(Transpose, case="NIG",
2004 Jul 14
1
Running the optimization on the subset of parameters
Dear all,
I'd like to find a minimum of (-loglik) function which is a function of k parameters. I'd like to run the minimization algorithm for the different subsets of the parameters and assign the fixed values to the complementary subset. How should I define my (-loglik) function such that it can be passed to the optim or other optimization function?
Much thanks for any suggestions.
2008 May 23
1
maximizing the gamma likelihood
for learning purposes and also to help someone, i used roger peng's
document to get the mle's of the gamma where the gamma is defined as
f(y_i) = (1/gammafunction(shape)) * (scale^shape) * (y_i^(shape-1)) *
exp(-scale*y_i)
( i'm defining the scale as lambda rather than 1/lambda. various books
define it differently ).
i found the likelihood to be n*shape*log(scale) +
2007 Dec 04
2
weighted Cox proportional hazards regression
I'm getting unexpected results from the coxph function when using
weights from counter-matching. For example, the following code
produces a parameter estimate of -1.59 where I expect 0.63:
d2 = structure(list(x = c(1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
1, 0, 0, 1, 0, 1, 0, 1, 0, 1), wt = c(5, 42, 40, 4, 43, 4, 42,
4, 44, 5, 38, 4, 39, 4, 4, 37, 40, 4, 44, 5, 45, 5, 44, 5), riskset =
2006 Sep 14
1
EBAM ERROR
Dear RUsers,
I am new to R. I am learning how to use R. I am a PC user and run R on
windows. I would appreciate if some one could guide me on a few questions I
have:
1) I have 4 cel files (2 replicates for NORM and Disease resp). I have been
able to run siggenes on this dataset where I have 4 labels in the class file
groupsnhi.cl op-> (0,0,1,1) and my data has been read into datrmanhi after
2004 Aug 10
1
Question about mle function
Dear all,
I'd like to find the mle esttimates using the mle function
mle(negloglik, start = list(), fixed=list(), method="...").
I am using the L-BGFS-B method and I don't supply the gradient function. Is there a way to print the gradients found at the solution value?
I am using R-1.9.1 on Windows and on Unix.
Thank you in advance,
Victoria Landsman.
[[alternative
2006 Sep 14
0
Help On EBAM
Dear RUsers,
I am new to R. I am learning how to use R. I am a PC user and run R on
windows. I would appreciate if some one could guide me on a few questions I
have:
1) I have 4 cel files (2 replicates for NORM and Disease resp). I have been
able to run siggenes on this dataset where I have 4 labels in the class file
groupsnhi.cl op-> (0,0,1,1) and my data has been read into datrmanhi after
2005 Mar 07
1
information on maximum likelihood
Hello,
I have a time series that contains 40 years of daily average temperature. I
am attempting to create a time series model for the temperature based on a
number of papers that do the same. I have an expression that describes the
temperature behavior over time but it contains 7 unknown parameters. The
authors of the aforementioned papers state that they calculate the
parameters using MLE
2004 Oct 05
1
Bug in optim - way to solve problem?
Hi,
I want to automatically fit variograms to a large number of different
sample data sets, and call the funtion "likfit" (in package geoR) from
within a for-loop. "likfit" does again call "optim". After ssuccessfully
fitting variograms to some of the data sets, the procedure crashes and I
get the error message:
Error in optim(par = ini, fn = negloglik.GRF,
2010 Jan 26
6
Help
...= 4
> N_T = 6
>
> dat$x = log(dat$D)
> dat$p = dat$M / (dat$L+dat$M)
> dat$InvT = 1/dat$T
> dat$glm1= log(1-dat$p)
>
> negloglike = function(parms, dat){
>
> pp = design%*%parms
> p = 1-exp(pp)
>
> obj = 0
> t_D = 0
> for(d in 1:N_D){
> for(t in...
2008 Nov 08
3
Fitting a modified logistic with glm?
Hi all,
Where f(x) is a logistic function, I have data that follow:
g(x) = f(x)*.5 + .5
How would you suggest I modify the standard glm(..., family='binomial')
function to fit this? Here's an example of a clearly ill-advised attempt to
simply use the standard glm(..., family='binomial') approach:
########
# First generate some data
########
#define the scale and location of
2013 Jul 17
2
error message in gev
Hi r-users,
I would like to use gev and my data (annual rainfall ) is as follows:
> head(dat,20) A B C D E F G H I J
1 45.1 41.5 58.5 50.1 46.0 49.1 37.7 49.1 59.8 54.0
2 50.3 39.8 49.4 56.4 49.4 48.8 42.1 49.8 49.4 58.3
3 41.7 39.3 44.6 39.1 35.7 41.5 40.8 40.8 38.5 45.6
4 50.7 33.9 48.4 28.2 35.5 39.1 61.4 17.0 30.7 38.3
5 39.3 30.6 46.9 23.8 25.8
2007 May 02
3
ED50 from logistic model with interactions
Hi,
I was wondering if someone could please help me. I am doing a logistic
regression to compare size at maturity between 3 seasons. My model is:
fit <- glm(Mature ~ Season * Size - 1, family = binomial, data=dat)
where Mature is a binary response, 0 for immature, 1 for mature. There
are 3 Seasons.
The Season * Size interaction is significant. I would like to compare the
size at 50%