| Chapter 52 TheMCMCProcedure9 P' l# V7 E( {7 w! a1 W0 j Contents Overview:MCMCProcedure ............................ 3478( ^, g8 S: M% u% k' v) q+ G* x4 X7 z PROCMCMCComparedwithOtherSASProcedures ............3479 GettingStarted:MCMCProcedure .......................... 3479 SimpleLinearRegression ...........................3480+ ?- ]* v; j' u TheBehrens-FisherProblem ..........................34882 n. F4 s& y8 g! q2 w9 }6 } Mixed-EffectsModel .............................3492, j5 x9 d9 I: T7 p' @, Q4 S& Q+ @ Syntax:MCMCProcedure .............................. 3495# `1 }$ G/ ^: |, g ~+ i& b% L PROCMCMCStatement ...........................3496 ARRAYStatement ...............................3508. X6 P& n* o* ^6 W8 u/ @8 @. u BEGINCNST/ENDCNSTStatement .....................35091 S6 I ^) O5 {1 z8 ` BEGINNODATA/ENDNODATAStatements .................3511 BYStatement .................................3511 MODELStatement ...............................3512 PARMSStatement ...............................35150 Q3 c6 O: t6 C# M PRIOR/HYPERPRIORStatement .......................3516 ProgrammingStatements ...........................3516 UDSStatement .................................35186 h7 U7 M+ V9 \5 T, |( s) l" M. L Details:MCMCProcedure .............................. 3522. H( ^* V6 P) ~6 F2 R4 [: V HowPROCMCMCWorks ..........................3522) }, ~6 J2 ~2 k [. N BlockingofParameters ............................3523 Samplers ....................................3524 TuningtheProposalDistribution .......................35253 D S ^& y- s5 ]5 k, I) V7 s; D InitialValuesoftheMarkovChains ......................3528 AssignmentsofParameters ..........................3528$ B9 q$ M0 U. T StandardDistributions .............................3530 SpecifyingaNewDistribution .........................3541 UsingDensityFunctionsintheProgrammingStatements ...........3542 TruncationandCensoring ...........................3544 MultivariateDensityFunctions ........................3546 SomeUsefulSASFunctions ..........................3549 MatrixFunctionsinPROCMCMC ......................3551 ModelingJointLikelihood ...........................3556 RegeneratingDiagnosticsPlots ........................3557 PosteriorPredictiveDistribution ........................35600 g+ N. ?# X W" m R4 D HandlingofMissingData ...........................3565 FloatingPointErrorsandOverflows ......................3565 HandlingErrorMessages ...........................3568 ComputationalResources ...........................35707 S& r' u5 D8 }3 x9 ]7 w7 E8 ^) t3 P DisplayedOutput ................................3571$ S' a. K% j! t( d4 @" f% \# O. N ODSTableNames ...............................3575$ W8 B" V: Z$ D* M+ P, G ODSGraphics .................................3577 Examples:MCMCProcedure ............................ 3578; C6 U- S; {: a7 X8 L. u& r Example52.1:SimulatingSamplesFromaKnownDensity .........3578( J4 I3 y, m1 n# p& ]) ^7 e Example52.2:Box-CoxTransformation ...................3583 Example52.3:GeneralizedLinearModels ..................35923 S' Q$ ^1 n9 w2 n% T/ h) b$ w Example52.4:NonlinearPoissonRegressionModels ............36051 J% A6 z* Y& E8 A0 H9 ~ Example52.5:Random-EffectsModels ...................3614: ~! l: G& H& s5 e Example52.6:ChangePointModels .....................3630 Example52.7:ExponentialandWeibullSurvivalAnalysis ..........3634 Example52.8:CoxModels ..........................36473 k$ o) X. H; |$ B) ^. k. P Example52.9:NormalRegressionwithIntervalCensoring .........3664 Example52.10:ConstrainedAnalysis ....................36664 g' Q; T l2 q- c( A( G+ q Example52.11:ImplementaNewSamplingAlgorithm ...........3672" R8 a+ {4 M* l P. o% f9 N0 O Example52.12:UsingaTransformationtoImproveMixing .........36837 \/ m: m) m$ m- k Example52.13:Gelman-RubinDiagnostics .................3693 References ...................................... 3700$ b( k" a ^! x$ z |
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |