tag:blogger.com,1999:blog-3534970434503513102.post4660545477431496723..comments2016-05-06T03:48:43.163-04:00Comments on Fight Entropy: Data transfer from Matlab to Stata and reverseSolomon Hsianghttps://plus.google.com/103579432230864892697noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3534970434503513102.post-87070626120030883792014-06-10T17:15:18.200-04:002014-06-10T17:15:18.200-04:00I modified the csv2mat_numeric function a little b...I modified the csv2mat_numeric function a little bit so that it can import also “mixed” data (numeric and string variables) and created a function csv2mat_mixed (download: http://www.columbia.edu/~sl3382/matlab.html). However, it requires the number of variables and the number of observations per variable along with a vector specifying the string variable positions in the csv file as inputs. Therefore, if the data set doesn't actually include string variables, csv2mat_numeric should be preferred since it only needs the filename as input.Stephanie Lacknerhttp://www.columbia.edu/~sl3382noreply@blogger.comtag:blogger.com,1999:blog-3534970434503513102.post-83246059496107185932013-08-28T12:56:29.204-04:002013-08-28T12:56:29.204-04:00If your script knows the name of the files you are...If your script knows the name of the files you are using, you should be able to automate the transfers of data by calling the function from the script. Solomon Hsianghttp://www.blogger.com/profile/00936469103707728475noreply@blogger.comtag:blogger.com,1999:blog-3534970434503513102.post-73309509663728933242013-08-28T05:20:01.276-04:002013-08-28T05:20:01.276-04:00This could be just what I need! Just a question be...This could be just what I need! Just a question before I dive into this: I need to run two iterative procedures, one in STATA and on in MATLAB, and I need to send newly created results back and forth from one program to the other, and I need to have this automated as I have hundreds of thousands iterations. So essentially, I need to call a STATA dofile from Matlab as a subroutine, and reverse.<br /><br />I presume your command just works interactively (user sitting in front of screen and doing manually),and could not be built into scripts?<br /><br />I guess I will have to estimate my model either all in STATA, but I am not happy using MATA, or in MATLAB, but I would need to program my estimator(which is precanned in STATA). Can your command spare me from those options?<br /><br />Thanks! Katharina. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3534970434503513102.post-68990030187710799862013-05-29T18:51:51.478-04:002013-05-29T18:51:51.478-04:00Thanks My! It doesn't look like there's a ...Thanks My! It doesn't look like there's a straightforward way of doing it without using Matlab itself. Apparently later versions of Matlab save .mat files in a format that can be read with R.<br /><br />http://stackoverflow.com/questions/7713422/convert-mat-file-to-r-compliant-file<br /><br />Perhaps you could try that?Jesse Anttila-Hugheshttp://www.blogger.com/profile/02957313306576759914noreply@blogger.comtag:blogger.com,1999:blog-3534970434503513102.post-39363230349373479702013-05-09T20:31:12.063-04:002013-05-09T20:31:12.063-04:00Hi...
First - Jesse you were a great TA
Second -...Hi...<br /><br />First - Jesse you were a great TA<br /><br />Second - Is there any way to open a matlab file with stata without having matlab? Myhttp://www.blogger.com/profile/02483582347383811239noreply@blogger.comtag:blogger.com,1999:blog-3534970434503513102.post-31725618780288237402012-10-19T10:01:47.360-04:002012-10-19T10:01:47.360-04:00Nice!!!!Nice!!!!Anonymousnoreply@blogger.com