tag:blogger.com,1999:blog-6288862798546085706.post5091241884934817658..comments2024-02-08T03:39:11.256-05:00Comments on Econometrics By Simulation: Francishttp://www.blogger.com/profile/16658586705916884436noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6288862798546085706.post-21960082772680524932012-11-03T23:42:56.476-04:002012-11-03T23:42:56.476-04:00Thanks, that is useful but I am still hoping to un...Thanks, that is useful but I am still hoping to understand how to assign something to the fourth element dynamically. I don't need to use the assign command, I just want to be able to use any command.Francishttps://www.blogger.com/profile/16658586705916884436noreply@blogger.comtag:blogger.com,1999:blog-6288862798546085706.post-56866051512379174252012-10-05T18:54:42.515-04:002012-10-05T18:54:42.515-04:00assign("x",y) creates the object "x...assign("x",y) creates the object "x". You cannot use it to call a previous object, as you are trying to do in assign("a[4]",100). What it does instead is that it creates the object "a[4]" that you see with get("a[4]"). What get("a")[4] does is different: it first gets the object "a" and then read its fourth element.<br /><br />Hope this helps!Fr.https://www.blogger.com/profile/13152253297672195767noreply@blogger.com