Hi
I would like to display simulated values together with empirical values in the same chart. How does this work? I assume that I have to specify time series data, but I do not succeed in using this table. To test it, I have constructed a simple test model (see attachment). Data are in the file "Cohort.xls" (in the Data folder). Thanks and best regards.
Display simulated together with empirical values in a chart
Re: Display simulated together with empirical values in a chart
It should work, if you drag from the model variable and the data to connect them to the chart.
I'll modify your sample for an example.
I'll modify your sample for an example.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Display simulated together with empirical values in a chart
Here's an example.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Display simulated together with empirical values in a chart
You need 3 parts:
1. The data has to be formatted with a key attribute(s) and DateTime column: 2. Then you can generate a mapping, first detecting the types, then generating a data entity: 3. That gets you a data entitytype: Then you can reference the data elsewhere: We should permit singular data, but at the moment we don't.
1. The data has to be formatted with a key attribute(s) and DateTime column: 2. Then you can generate a mapping, first detecting the types, then generating a data entity: 3. That gets you a data entitytype: Then you can reference the data elsewhere: We should permit singular data, but at the moment we don't.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Display simulated together with empirical values in a chart
sorry for the trouble... when I want to download the model, I get the message that the attachment does not exist anymore???
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Display simulated together with empirical values in a chart
You should be able to download it now.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Display simulated together with empirical values in a chart
Thanks, it works.
Is it possible to rename the results in the legend? The names appear rather "technical" and I would like to give them more meaningful names. I assume that it cannot be done in the legend, but just wanted to ask.
Is it possible to rename the results in the legend? The names appear rather "technical" and I would like to give them more meaningful names. I assume that it cannot be done in the legend, but just wanted to ask.
Re: Display simulated together with empirical values in a chart
I don't think so - you can change the title, but the varnames are automatic. You could rename the variable itself, of course.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Display simulated together with empirical values in a chart
I recently had a problem with creating a data entitytype and get an error message, that the entitytype "Interventions" (which is the name of the table in the data file) has no key attribute. This problem did not occur in the previous test. What might be the problem?
Re: Display simulated together with empirical values in a chart
I'd guess the original version of the data entity was created from a dataset without the Cohort key attribute, so it can't be updated. You could try (a) adding the Cohort key attribute to the entity manually, or (b) delete it (the entity, not the data & mapping) and recreate.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/