Conformability Error 503
Contents |
in inteff Date Fri, 2 May 2008 13:17:03 +0100 (BST) --- Chin-Chih
Stata Matrix
. . . . . . . . . . . . . . . . . . . Return code 503 conformability error; You have issued a matrix command attempting to combine two matrices that are not conformable, for example, multiplying a 3x2 matrix by a 3x3 matrix. You will also get this message if you attempt an operation that requires a square matrix and the matrix is not square. In your case this could mean two things: 1) -probit- dropped a variable due to multicolinearity and -inteff- did not accurately pick that up. If that is the case you will have gotten a warning when you ran the -probit- command. The solution is to fix your model so it does not contain any collinear variables. 2) An operation on the variance covariance backfired. This can happen if you have explanatory variables with wildly different scales, e.g. income in dollars per year and whether or not someone is female. Something you could do that might help is to make the scales more similar, e.g. by dividing the income by 10,000. Hope this helps, Maarten ----------------------------------------- Maarten L. Buis Department of Social Research Methodology Vrije Universiteit Amsterdam Boelelaan 1081 1081 HV Amsterdam The Netherlands visiting address: Buitenveldertselaan 3 (Metropolitan), room Z434 +31 20 5986715 http://home.fsw.vu.nl/m.buis/ ----------------------------------------- __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] st: Conformability error r(503) with areg From Lauren Jones
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/30075445/post-eb-vector-from-a-custom-program-in-stata about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping https://books.google.com/books?id=hjT6AwAAQBAJ&pg=PA272&lpg=PA272&dq=conformability+error+503&source=bl&ots=QwLeuRHu0e&sig=RqnJpL4IjEZTLoKlZtLVeuhC09Q&hl=en&sa=X&ved=0ahUKEwjq--qa4LvPAhUF3YMKHV4DCnkQ6AEIZDAJ each other. Join them; it only takes a minute: Sign up Post e(b) vector from a custom program in Stata up vote 3 down vote favorite I wrote a program that computes a weighted regression and now I want conformability error my estimation results to be stored as an e(b) vector so that the bootstrap command can easily access the results, but I keep getting an error. My program looks like: capture program drop mytest program mytest, eclass version 13 syntax varlist [if] marksample touse // mata subroutine creates matrix `b', such as mata: bla("`varlist'", "`touse'") tempname b matrix `b' = (1\2\3) ereturn post `b' end mytest town_id ereturn list But I keep getting a conformability error r(503); conformability error 503 upon running the script. When I instead post an ordinary matrix such as ereturn matrix x = b, everything works fine but I would like to have my coefficients stored 'properly' in an e(b) vector. I checked Stata's documentation but was unable to find out why this is not working. Their advice is to code tempname b V // produce coefficient vector `b' and variance–covariance matrix `V' ereturn post `b' `V', obs(`nobs') depname(`depn') esample(`touse') The options of ereturn post are all optional. Could anyone tell me what I am missing here? Thanks! stata share|improve this question asked May 6 '15 at 11:30 Robert Aue 183 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Use a "row" vector instead of a "column" vector. If you check, for example, the stored results of regress, you'll see that this is what is expected. capture program drop mytest program mytest, eclass version 13 syntax varlist [if] marksample touse // mata subroutine creates matrix `b', such as mata: bla("`varlist'", "`touse'") tempname b matrix `b' = (1,2,3) ereturn post `b' end *----- tests ----- clear sysuse auto // mytest test mytest mpg weight ereturn list matrix list e(b) // regress example regress price weight mpg ereturn list matrix list e(b) share|improve this answer edited May 6 '15 at 13:20 answered May 6 '15 at 13:12 Roberto Ferrer 9,9
van GoogleInloggenVerborgen veldenBoekenbooks.google.nl - Highly recommended by JASA, Technometrics, and other journals, the first edition of this bestseller showed how to easily perform complex linear mixed model (LMM) analyses via a variety of software programs. Linear Mixed Models: A Practical Guide Using Statistical Software, Second Edition continues to...https://books.google.nl/books/about/Linear_Mixed_Models.html?hl=nl&id=hjT6AwAAQBAJ&utm_source=gb-gplus-shareLinear Mixed ModelsMijn bibliotheekHelpGeavanceerd zoeken naar boekeneBoek bekijkenDit boek in gedrukte vorm bestellenCRC PressBol.comProxis.nlselexyz.nlVan StockumAlle verkopers»Linear Mixed Models: A Practical Guide Using Statistical Software, Second EditionBrady T. West, Kathleen B. Welch, Andrzej T GaleckiCRC Press, 17 jul. 2014 - 440 pagina's 0 Recensieshttps://books.google.nl/books/about/Linear_Mixed_Models.html?hl=nl&id=hjT6AwAAQBAJHighly recommended by JASA, Technometrics, and other journals, the first edition of this bestseller showed how to easily perform complex linear mixed model (LMM) analyses via a variety of software programs. Linear Mixed Models: A Practical Guide Using Statistical Software, Second Edition continues to lead readers step by step through the process of fitting LMMs. This second edition covers additional topics on the application of LMMs that are valuable for data analysts in all fields. It also updates the case studies using the latest versions of the software procedures and provides up-to-date information on the options and features of the software procedures available for fitting LMMs in SAS, SPSS, Stata, R/S-plus, and HLM. New to the Second Edition A new chapter on models with crossed random effects that uses a case study to illustrate software procedures capable of fitting these models Power analysis methods for longitudinal and clustered study designs, including software options for power analyses and suggested approaches to writing simulations Use of the lmer() function in the lme4 R package New sections on fitting LMMs to complex sample survey data and Bayesian approaches to making inferences based on LMMs Updated graphical procedures in the software packages Substantially revised index to enable more efficient reading and easier location of m