9 Oct 07:38
11 Oct 01:06
(no subject)
Hsin-I, Lin <hlin1 <at> tulane.edu>
2002-10-10 23:06:14 GMT
2002-10-10 23:06:14 GMT
Subscribe hlin1 <at> tulane.edu
15 Oct 18:54
Is MCSim capable to do this?
Yanyuan Ma <yma <at> unity.ncsu.edu>
2002-10-15 16:54:17 GMT
2002-10-15 16:54:17 GMT
Dear Fredric, This is a very simle question and I hope you can at least give me a quick reply. I know that MCSim is designed to deal with problems where the mean function is implicitly given through an ordinary differential equation of t. Now, my mean function has one more complexity on top of that. It is an integral of f(t,x)*g(x). Where g is an explicit function and f is the solution of some ordinary differential equation. Can MCSim deal this kind of model? You can probably already guess that we are trying to integrate out x which represents the individual parameters. Indeed this is the case. And we have to do this because we don't get data of each individual, we are only given their average data. Thank you very much in advance Yanyuan
16 Oct 10:26
I can not compile it
Chen, Lijian <chen.855 <at> osu.edu>
2002-10-16 08:26:30 GMT
2002-10-16 08:26:30 GMT
hi
I can not link it using microsoft c++ 6.0.
the error information is listed below:
--------------------Configuration: mod - Win32
Debug--------------------
Linking...
mod.obj : error LNK2001: unresolved external symbol _WriteModel
mod.obj : error LNK2001: unresolved external symbol _ReadModel
Debug/mod.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Linking...
mod.obj : error LNK2001: unresolved external symbol _WriteModel
mod.obj : error LNK2001: unresolved external symbol _ReadModel
Debug/mod.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
mod.exe - 3 error(s), 0 warning(s)
could you help to figure it out?
sincerely yours
lijian chen
21 Oct 18:02
Objet : Help-mcsim digest, Vol 1 #134 - 1 msg
Frédéric BOIS <Frederic.Bois <at> ineris.fr>
2002-10-21 16:02:21 GMT
2002-10-21 16:02:21 GMT
Dear Yanyuan You want to integrate over x and t, right ? Could cast your problem as a system of partial differential equations in t and x. If yes, then you could use a line method to solve the PDEs. MCSim can solve well behaved PDE systems (see the version 5 beta pde exemples, in the tar.gz file attached). If you need more sophisticated integration you may want to try doing it throught a statistical model and MCMC simulations. You may need to code some bits by hand though. Frederic ---- original message ----- Date: Tue, 15 Oct 2002 12:54:17 -0400 From: Yanyuan Ma <yma <at> unity.ncsu.edu> Organization: NC State University To: fredomatic <at> free.fr, help-mcsim <at> gnu.org Subject: Is MCSim capable to do this? Dear Fredric, This is a very simle question and I hope you can at least give me a quick reply. I know that MCSim is designed to deal with problems where the mean function is implicitly given through an ordinary differential equation of t. Now, my mean function has one more complexity on top of that. It is an integral of f(t,x)*g(x). Where g is an explicit function and f is the solution of some ordinary differential equation. Can MCSim deal this kind of model? You can probably already guess that we are trying to integrate out x which represents the individual parameters. Indeed this is the case. And we have to do this because we don't get data of each individual, we are only given their average data. Thank you very much in advance Yanyuan
22 Oct 12:44
Objet : Help-mcsim digest, Vol 1 #135 - 2 msgs
Frédéric BOIS <Frederic.Bois <at> ineris.fr>
2002-10-22 10:44:17 GMT
2002-10-22 10:44:17 GMT
Hi ! This is a classical problem with some compilers. Apparently the linker does not see modi.c or modi.o and modo.c or modo.o which contain the needed routines. You need to compile all the files in the mod directory and then link them all together. I don't know how to do it with MS C++... F. Bois From: "Chen, Lijian" <chen.855 <at> osu.edu> To: <help-mcsim <at> gnu.org> Subject: I can not compile it Date: Wed, 16 Oct 2002 04:26:30 -0400 hi I can not link it using microsoft c++ 6.0. the error information is listed below: --------------------Configuration: mod - Win32 Debug-------------------- Linking... mod.obj : error LNK2001: unresolved external symbol _WriteModel mod.obj : error LNK2001: unresolved external symbol _ReadModel Debug/mod.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. mod.exe - 3 error(s), 0 warning(s) could you help to figure it out? sincerely yours lijian chen
25 Oct 08:46
McSim query
Suhrid Balakrishnan <suhrid <at> paul.rutgers.edu>
2002-10-25 06:46:42 GMT
2002-10-25 06:46:42 GMT
Hi, I'm trying to do some analysis with McSim 4.1 and I'd like to specify priors in a heirarchical fashion exactly as the authors of the software did in their 1996 paper - Bois, F. Y., Gelman, A., Jiang, J., Maszle, D., Zeise, L. and Alexeef, G. (1996). Population toxicokinetics of tetrachloroethylene. Archives of Toxicology 70:347-355. also used in Gelman, A., Bois, F. Y. and Jiang, J. (1996). Physiological pharmacokinetic analysis using population modeling and informative prior distributions. Journal of the American Statistical Association 91:1400-1412. The problem I'm facing is that I see no way to easily incorporate the Lognormal hierarchical prior (mu*, Sigma*) (where mu* and Sigma* are the geometric mean and standard deviations respectively = exp(mu) and exp(Sigma)) with further conditional distributions on mu ~ Normal (M,S) and Sigma as inverse-gamma(a,b) (a, b being the shape and scale parameters, respectively) in the McSim framework. I've tried a number of things including toying with levels, exponents, outputs, scaling etc. and nothing seems to work. What one desires, I presume, is a way to specify the following hierarchical distributions in the simulation file (which the authors used in both references above): Distrib (Sigma_V, InvGamma, 2, 0.1823); Distrib (Mean_V, Normal, 0.1, 1.2); # values are abitrary Distrib (V, TruncLogNormal, exp(Mean_V), exp(Sigma_V), 1e-6,10); But the above formulation isn't allowed by McSim (no exponentiation alllowed in the Distrib specification). Or an alternative way to get the same effect - is there something obvious that I'm not seeing? Presumably, there is a way to do this, I would be greatly appreciative if anyone would let me know how. Thanks in advance, Sincerely, Suhrid
27 Oct 14:40
GPSS
<Amaradonna <at> aol.com>
2002-10-27 13:40:59 GMT
2002-10-27 13:40:59 GMT
A few of us graduates here have been trying to solve a GPSS (general purpose simulation software) problem, however as there is no results page for us to compare our solutions, I was wondering whether it maybe possible to have some feedback to what we are trying to resolve, below.
Thank you very much in advance and I look forward to hearing from you soon.
Regards,
Maxine
Questions:
A barber's shop in Watford is a one-man operation open from 8am to 5pm each
day. Customers arrive throughout the day and the inter-arrival times (in
minutes) between customers is 20 minutes ± 5 minutes. This is a uniformly
distribution using only integer values. The service time at the shop is
similarly distributed over 23 minutes ± 10 minutes.
A. Write a GPSS program that simulates operation of the shop over a 9 hour
day. Explain briefly each line of your program.
B. Suppose that 85% of the customers who arrive at the shop need only a
haircut and the remaining 15% require both a haircut and a shave. Assume
that
the haircuts take 20 minutes (± 7 mins, uniformly distributed) and shaves
take 20minutes (± 5 minutes, uniformly distributed). Modify your GPSS
program
to reflect these changes, run it and comment on the results.
C. Now suppose that the inter-arrival patterns of the two types of
customers
described in part B are known to be 18 ± 5 minutes for those customers who
only need a haircut and 102 ± 30 minutes for customers requiring both a
haircut and a shave. Modify your GPSS program to reflect these changes, run
the program and comment on the results.
Exercise 4
An old people's home has an in-house surgery which is staffed by a single
GP
and three specialists. Sixty percent of the patients who request help can
be
dealt with by the GP, the remaining 40% of the patients require access to
one
of the specialists. Assume:
· The time between successive patient arrivals is in the range 22 ± 12
minutes.
· Patients who do not need a specialist require 22 ± 15 minutes of the
GP's
time; those who require a specialist take 5 ± 3 minutes of the GP's time,
wait 30 ± 20 minutes for a specialist to arrive, then spend 45 ± 20 minutes
with the specialist.
1. Do a simulation study of the operation of this surgery which opens for
business from 9am to 5pm every day, to determine:
a. How busy is:
i. the GP (i.e. what portion of the time is the GP with a patient?) and
ii. a specialist.
a. What is the average waiting time to wait to see:
i. the GP and (ii) a specialist?
a. How many patients can be seen in one day by:
(i) the GP and (ii) the specialists.
2. 10% of the patients who are classified as not needing a specialist,
revisit the GP after they have left the consulting room but not the
surgery.
Modify your program and comment on your simulation report. How will your
answers for part (1) change?
3. Consider the original problem in part (1), 2% of patients are VIPs (Very
Important Persons) who are seen immediately by the GP, pre-empting any
other
patient that might be with the GP at that time. The GP only spends 2
minutes
with a VIP, and then resumes attending to the pre-empted client. VIP's are
not referred to a specialist and hence leave the surgery after seeing the
consultant. Modify your program to accommodate this change and comment on
your simulation report. On a daily basis what is the average time spent
attending to VIPs?
Thank you very much in advance and I look forward to hearing from you soon.
Regards,
Maxine
Questions:
A barber's shop in Watford is a one-man operation open from 8am to 5pm each
day. Customers arrive throughout the day and the inter-arrival times (in
minutes) between customers is 20 minutes ± 5 minutes. This is a uniformly
distribution using only integer values. The service time at the shop is
similarly distributed over 23 minutes ± 10 minutes.
A. Write a GPSS program that simulates operation of the shop over a 9 hour
day. Explain briefly each line of your program.
B. Suppose that 85% of the customers who arrive at the shop need only a
haircut and the remaining 15% require both a haircut and a shave. Assume
that
the haircuts take 20 minutes (± 7 mins, uniformly distributed) and shaves
take 20minutes (± 5 minutes, uniformly distributed). Modify your GPSS
program
to reflect these changes, run it and comment on the results.
C. Now suppose that the inter-arrival patterns of the two types of
customers
described in part B are known to be 18 ± 5 minutes for those customers who
only need a haircut and 102 ± 30 minutes for customers requiring both a
haircut and a shave. Modify your GPSS program to reflect these changes, run
the program and comment on the results.
Exercise 4
An old people's home has an in-house surgery which is staffed by a single
GP
and three specialists. Sixty percent of the patients who request help can
be
dealt with by the GP, the remaining 40% of the patients require access to
one
of the specialists. Assume:
· The time between successive patient arrivals is in the range 22 ± 12
minutes.
· Patients who do not need a specialist require 22 ± 15 minutes of the
GP's
time; those who require a specialist take 5 ± 3 minutes of the GP's time,
wait 30 ± 20 minutes for a specialist to arrive, then spend 45 ± 20 minutes
with the specialist.
1. Do a simulation study of the operation of this surgery which opens for
business from 9am to 5pm every day, to determine:
a. How busy is:
i. the GP (i.e. what portion of the time is the GP with a patient?) and
ii. a specialist.
a. What is the average waiting time to wait to see:
i. the GP and (ii) a specialist?
a. How many patients can be seen in one day by:
(i) the GP and (ii) the specialists.
2. 10% of the patients who are classified as not needing a specialist,
revisit the GP after they have left the consulting room but not the
surgery.
Modify your program and comment on your simulation report. How will your
answers for part (1) change?
3. Consider the original problem in part (1), 2% of patients are VIPs (Very
Important Persons) who are seen immediately by the GP, pre-empting any
other
patient that might be with the GP at that time. The GP only spends 2
minutes
with a VIP, and then resumes attending to the pre-empted client. VIP's are
not referred to a specialist and hence leave the surgery after seeing the
consultant. Modify your program to accommodate this change and comment on
your simulation report. On a daily basis what is the average time spent
attending to VIPs?
28 Oct 12:11
Objet : Help-mcsim digest, Vol 1 #139 - 1 msg
Frédéric BOIS <Frederic.Bois <at> ineris.fr>
2002-10-28 11:11:51 GMT
2002-10-28 11:11:51 GMT
Hi, If you want to do: Distrib (Sigma_V, InvGamma, 2, 0.1823); Distrib (Mean_V, Normal, 0.1, 1.2); # values are abitrary Distrib (V, TruncLogNormal, exp(Mean_V), exp(Sigma_V), 1e-6,10); you have a problem with V, the way to do it is to define a variable Log_V and do: in the model definition file, define V and compute it in the Scale section as : V = exp(Log_V); in the input file: Distrib (Sigma_V, InvGamma, 2, 0.1823); Distrib (Mean_V, Normal, 0.1, 1.2); # values are abitrary Distrib (Log_V, TruncNormal, Mean_V, Sigma_V, -14, 2.3); This way, V will have the lognormal distribution you want. Note that we used InvGamma as priors for variances, as usually made, rather than for SDs. If you use a variance you would do: Distrib (SigmaSquare_V, InvGamma, 2, 0.1823); Distrib (Mean_V, Normal, 0.1, 1.2); # values are abitrary Distrib (Log_V, TruncNormal_v, Mean_V, SigmaSquare_V, -14, 2.3); using the TruncNormal_v distribution specification. I hope this helps. Frederic Bois >>> <help-mcsim-request <at> gnu.org> Vendredi 25 octobre 2002 11:42:37 >>> Date: Fri, 25 Oct 2002 02:46:42 -0400 (EDT) From: Suhrid Balakrishnan <suhrid <at> paul.rutgers.edu> To: help-mcsim <at> gnu.org Subject: McSim query Hi, I'm trying to do some analysis with McSim 4.1 and I'd like to specify priors in a heirarchical fashion exactly as the authors of the software did in their 1996 paper - Bois, F. Y., Gelman, A., Jiang, J., Maszle, D., Zeise, L. and Alexeef, G. (1996). Population toxicokinetics of tetrachloroethylene. Archives of Toxicology 70:347-355. also used in Gelman, A., Bois, F. Y. and Jiang, J. (1996). Physiological pharmacokinetic analysis using population modeling and informative prior distributions. Journal of the American Statistical Association 91:1400-1412. The problem I'm facing is that I see no way to easily incorporate the Lognormal hierarchical prior (mu*, Sigma*) (where mu* and Sigma* are the geometric mean and standard deviations respectively = exp(mu) and exp(Sigma)) with further conditional distributions on mu ~ Normal (M,S) and Sigma as inverse-gamma(a,b) (a, b being the shape and scale parameters, respectively) in the McSim framework. I've tried a number of things including toying with levels, exponents, outputs, scaling etc. and nothing seems to work. What one desires, I presume, is a way to specify the following hierarchical distributions in the simulation file (which the authors used in both references above): Distrib (Sigma_V, InvGamma, 2, 0.1823); Distrib (Mean_V, Normal, 0.1, 1.2); # values are abitrary Distrib (V, TruncLogNormal, exp(Mean_V), exp(Sigma_V), 1e-6,10); But the above formulation isn't allowed by McSim (no exponentiation alllowed in the Distrib specification). Or an alternative way to get the same effect - is there something obvious that I'm not seeing? Presumably, there is a way to do this, I would be greatly appreciative if anyone would let me know how. Thanks in advance, Sincerely, Suhrid --__--__-- _______________________________________________ Help-mcsim mailing list Help-mcsim <at> gnu.org http://mail.gnu.org/mailman/listinfo/help-mcsim End of Help-mcsim Digest
28 Oct 23:31
perc.mtc.in fails?
Rodney Sparapani <rsparapa <at> post.its.mcw.edu>
2002-10-28 22:31:15 GMT
2002-10-28 22:31:15 GMT
I'm trying out MCSim 4.2.0 and I'm getting an error from the perc.mtc.in example. All of the other examples run without trouble. Here's the output: Testing NDoses with perc.ndoses.in ... -PASSED- Testing Monte Carlo with perc.mtc.in ... make: *** [one] Error 1 Any ideas what is wrong? I'm using GCC 3.2 under Solaris 8. Rodney Sparapani Medical College of Wisconsin Sr. Biostatistician Patient Care & Outcomes Research rsparapa <at> mcw.edu http://www.mcw.edu/pcor Was 'Name That Tune' rigged? WWLD -- What Would Lombardi Do
RSS Feed