Conformability Error Stata 503
Contents |
Fri, 09 Jan 2004 09:04:56 -0500 Just to report back to anyone interested on the list: Namratha's problem was caused because some variables were dropped from the estimation conformability error stata matrix (due to collinearity) in one or more of the replicate samples,
Conformability Error In Stata
which means that variances can't be calculated for this model, in this sample. -svrmodel- should--and eventually will--catch conformability error stata synth this and issue a more reasonable error message. --Nick Winter At 10:49 AM 1/8/2004 -0600, you wrote: I am analyzing data from the California Health Interview Survey, but am not allowed to have the real data. I send my programs to the Data Programmers at UCLA and they run them for me. Every time they run the following SVR regression on black men, I get back a conformability (r503) error: xi: svrmodel activity i.age i.nativity intEnglish i.neweduc married employed density stability ses4 immigrant if male=1&race==3 Because I do not have access to the data, what should I do? How can I figure out where I have missing values and where the problem lies? I can send the programmers at UCLA any commands or programs, but am not sure what to do. This does not occur in the dummy data set I have, so I can't really explore the problem using the fake data. I only get it on this regression for black men and no other one......other regressions with black men and different outcomes work fine. Thanks, Namratha Kandula ____________________________ Namratha Kandula, MD, MPH University of Chicago MC 2007 5841 S. Maryland Avenue Chicago, IL 60622 phone: 772-834-9180 fax: 773-702-1295 * * 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.edu/stat/stata/ -------------------------------------------------------- Nicholas Winter 607.255.8819 t Assistant Professor 607.255.4530 f Department of Government nw53@cornell.edu e 308 White Hall falcon.arts.cornell.edu/nw53 w Cornell University Ithaca, NY 14853-4601 * * 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.edu/stat/stata/ References: st: re: conformability error r(503) From: nkandula@medicine.b
in inteff Date Fri, 2 May 2008 13:17:03 +0100 (BST) --- Chin-Chih
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 http://stackoverflow.com/questions/30075445/post-eb-vector-from-a-custom-program-in-stata Learn more 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 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 conformability error regression and now I want 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 conformability error stata I keep getting a conformability error r(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 edi
be down. Please try the request again. Your cache administrator is webmaster. Generated Tue, 04 Oct 2016 21:04:30 GMT by s_hv972 (squid/3.5.20)