There are limits to how much people will do your debugging for you, but it
looks like you are unpacking beta,gamma from par, but packing gamma,beta into
start. Otherwise, print some of the values computed in the function and check.
-pd
> On 10 Dec 2016, at 20:01 , Fernando de Souza Bastos wrot
Thank you Duncan, it really was that!
Fernando de Souza Bastos
Professor Assistente
Universidade Federal de Viçosa (UFV)
Campus UFV - Florestal
Doutorando em EstatÃstica
Universidade Federal de Minas Gerais (UFMG)
Cel: (31) 99751-6586
2016-12-11 11:25 GMT-02:00 Duncan Murdoch :
> On 10/12/2
On 10/12/2016 2:01 PM, Fernando de Souza Bastos wrote:
The Log.lik function below returns the value '-INF' when it should return
the value -5836.219. I can not figure out the error, does anyone have any
suggestions?
I haven't read it carefully, but a likely problem is that you are using
constr
The Log.lik function below returns the value '-INF' when it should return
the value -5836.219. I can not figure out the error, does anyone have any
suggestions?
rm(list=ls())
library(ssmrob)
data(MEPS2001)
attach(MEPS2001)
n<-nrow(MEPS2001)
Log.lik <- function(par,X,W,y){
4 matches
Mail list logo