Help using Base SAS procedures

Providing log likelihood in MCMC from other procedure

Reply
Learner
Posts: 1

Providing log likelihood in MCMC from other procedure

How is possible to provide the log likelihood value for MCMC procedure from other procedures.

I.e. for given value of parameter we use other procedures in sas to return the likelihood value (rather than programming statement in PROC MCMC) and use the calculated likelihood in MCMC.

pseudo example:

proc mcmc data=inputdata;

parms alpha;

prior alpha ~ normal(0,1);

****** here use PROC REG to calculate the likelihood value for data for given alpha ****

***** put the PROC REG calculated  log likelihood in variable LL ***

model general(LL);

run;

Ask a Question
Discussion stats
  • 0 replies
  • 143 views
  • 0 likes
  • 1 in conversation