[R] Mlogit: Error in model.frame.default/ Error in solve.default

2015-01-15 Thread Lee van Cleef
Dear R users, 1) My problem in short: Mlogit cannot calculate certain conditional models. 2) My database: The target was a logistical regression analysis and a probability function which should include generic coefficients and alternative-specific ones. The database was a survey, the dependent

[R] M logit/problems

2015-01-10 Thread Lee van Cleef
Dear R users, 1) My problem in short: Mlogit cannot calculate certain conditional models. 2) My database: The target was a logistical regression analysis and a probability function which should include generic coefficients and alternative-specific ones. The database was a survey, the d

Re: [R] length of variable in mlogit

2012-08-14 Thread Lee van Cleef
Hi Michael, many thanks for the useful hints which gave me some deeper knowledge of R. It is definitely much appreciated. I think I have found the mistake - the problems did not arise from variable definitions etc. It was an intellectual mistake. The cause for the problems was that I had to di

Re: [R] length of variable in mlogit

2012-08-14 Thread Lee van Cleef
Hi Michael, many thanks for your time and the hint. This is much appreciated. Indeed, I managed it to get part of the dataset from which I want to develop my final logit model in the correct long format with true/false standing in the column for the choice variable,. But the problem with the v

Re: [R] length of variable in mlogit

2012-08-10 Thread Lee van Cleef
Hi Michael, I have sent youi the data. Best, Lee -- View this message in context: http://r.789695.n4.nabble.com/length-of-variable-in-mlogit-tp4638323p4639873.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org ma

Re: [R] length of variable in mlogit

2012-08-03 Thread Lee van Cleef
Hi Michael, many thanks for your comment. Below the original data as imported from Stata format. I deleted some columns with explaining variables because they were unnecessary and working; the model has several explaining variables with generic regression coefficients. pid Choice V7.Ch 1

Re: [R] length of variable in mlogit

2012-08-03 Thread Lee van Cleef
Ingmar, many thanks for your answer. I give you a smaller version of my program with the isolated "strange" variable, which I used when trying to elaborate the problem . [Start of R-Editor quote] library(foreign) library(gdata) library(gtools) library(gmodels) library(gplots) library(xtable) li

Re: [R] length of variable in mlogit

2012-08-01 Thread Lee van Cleef
Ingmar, many thanks. I get that one from R: Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data), : variable lengths differ (found for 'X') X is the variable I have used. Any comment would be much appreciated. Best regards! -- View this message in context: ht

[R] Marginal effects in mlogit

2012-07-30 Thread Lee van Cleef
Dear all, does anybody have experience with the calculation of marginal effects (“effects”) in Mlogit (see Croissant, Package ‘mlogit’, p.8)? 1) Is there a good qualitative explanation available for the listed options for the argument “type” (“aa”, …)? When do I have to choose aa, ar…? And w

[R] length of variable in mlogit

2012-07-30 Thread Lee van Cleef
Dear all, does anybody have experience with building logits in Mlogit? I want to test the use of a couple of alternative specific variables with a generic regression coefficient. However, one of them simply does not work. R says the length of this variable is different. Problem: If I check the l