Displaying 2 results from an estimated 2 matches for "zarembka".
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all:
I'm trying to fit the optimal Box-Cox
transformation related to nls (see the code
below) for the demand of money data in Green (3th
Edition) but in the last step R gives the next
error message.
Error en
`[.data.frame`(eval(object$data), ,
as.character(formula(object)[[2]])[2]) :
undefined columns selected.
?Any idea to solve the problem?
Thanks in advance,
2007 Dec 11
1
R computing speed
...optimization methods, default = 'BFGS'
# base category, default = 1
# restrictions, default = NULL
# weights, default all equal to 1
# outputs: an object of class "multilogit.c"
# McFadden D. (1974) "Conditional logit analysis of qualitative choice
behavior", in Zarembka P. (ed.), Frontiers in Econometrics, Academic Press.
multilogit.c <- function(y, xi, xi.names = colnames(xi), c.base=1,
rest=NULL, w = rep(1,nrow(y)), method='BFGS')
{
n.obs <- sum(w)
xi<-cbind(1,xi)
colnames(xi)[1]<-"Intercept"
nx<-ncol(xi)
ny<-ncol(y)...