TPQ as a query

47 views
Skip to first unread message

Kita Chaves Damasio Macario

unread,
Sep 11, 2024, 4:40:29 AMSep 11
to OxCal
Dear all,
I have already used TPQ as a prior info but I was now trying to evaluate the likelihood of a phase or sequence being before or after a specific calendar year (not saying that it is). Would you know any examples where I could find this code?

Thanks for your help

Kita

Erik Marsh

unread,
Sep 12, 2024, 8:11:17 AMSep 12
to OxCal
Hi Kita, I think you're looking for the query Order (and maybe Difference).
You can use them to compare a calendar year (as a Date) with another event in your model. Order will give your likelihoods that one was before the other.
I would normally recommend comparing a boundary from a phase or a sequence.
If you post your code here then it will easier for the forum to make suggestions.
Hope this helps. –Erik

Kita Chaves Damasio Macario

unread,
Sep 13, 2024, 8:38:26 AMSep 13
to OxCal
Dear Erik, Thanks for helping.
The code for using it as a prior would be, for example:
 Plot()
 {
  Outlier_Model("General",T(5),U(0,4),"t");
  Sequence("test after as a prior")
  {
   Boundary("start 1");
   After("prior")
   {
    C_Date("1370AD",1370,0);
    Outlier("", 0.05);
   };
   Phase("")
   {
    R_Date("test550_40", 550, 40)
    {
     Outlier("", 0.05);
    };
    R_Date("test500_40", 500, 40)
    {
     Outlier("", 0.05);
    };
    R_Date("test520_40", 520, 40)
    {
     Outlier("", 0.05);
    };
   };
   Boundary("end 1");
  };
 };

What forces the results to be After 1370AD, right?

What I would like to have instead is the likelihood for the Phase being after 1370AD. Can I have this using the After command in a different manner?
Thanks again.

Kita

Seren Griffiths

unread,
Sep 13, 2024, 8:59:03 AMSep 13
to OxCal
Hi Kita

I'd probably do something like this, which should give you the probability that each result occurred after your calendar age. 

(NB I wrote the below on the train longhand, so also check it works generally) :)

Hope that helps.

All the best
s

Plot()
 {
  Sequence("")
  {

    C_Date("1370AD",1370,0);
    Phase("")
   {
    R_Date("test550_40", 550, 40)
    {
     Outlier("");

    };
    R_Date("test500_40", 500, 40)
    {
     Outlier("");

    };
    R_Date("test520_40", 520, 40)
    {
     Outlier("");
    };
   };
  };
 };


From: ox...@googlegroups.com <ox...@googlegroups.com> on behalf of Kita Chaves Damasio Macario <kitam...@id.uff.br>
Sent: 13 September 2024 13:38
To: OxCal <ox...@googlegroups.com>
Subject: Re: TPQ as a query
 
This email originated from outside of Manchester Met. Do not click links or open attachments unless you recognise the sender and believe the content to be safe. Please contact the IT ServiceDesk if you have any concerns, https://www.mmu.ac.uk/about-us/professional-services/itd/about/contact

--
You received this message because you are subscribed to the Google Groups "OxCal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oxcal+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/oxcal/41d70f81-0e34-494b-83e2-67a0d810a5abn%40googlegroups.com.
"Before acting on this email or opening any attachments you should read the Manchester Metropolitan University email disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer "

Kita Chaves Damasio Macario

unread,
Sep 14, 2024, 2:22:09 AMSep 14
to OxCal
Dear Serene,
Thank you for your help.
I guess this also includes the calendar age as part of the data, so makes the Phase after 1370AD. I was looking for something that would return the likelihood for the Phase being after that year, but not using it as a prior information. I will keep trying. Thanks.

Kita

Bayliss, Alex

unread,
Sep 14, 2024, 3:01:52 AMSep 14
to ox...@googlegroups.com

Hi Kita,

 

Does this do what you want? The probability that start 1 is after AD 1370 is 70%, and that end 1 is after AD 1370 is 98%. Therefore, the probability that the whole phase (i.e. both the start and the end) is after AD 1370 is 69%.

 

Best wishes,

 

Alex

 

Historic England Logo
Work with us to champion heritage and improve lives. Read our Future Strategy and get involved at historicengland.org.uk/strategy.
Follow us:  Facebook  |  Twitter  |  Instagram     Sign up to our newsletter     
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of Historic England unless specifically stated. If you have received it in error, please delete it from your system and notify the sender immediately. Do not use, copy or disclose the information in any way nor act in reliance on it. Any information sent to Historic England may become publicly available. We respect your privacy and the use of your information. Please read our full privacy policy for more information.

Plot()

{

  Outlier_Model("General",T(5),U(0,4),"t");

  Sequence("test after as a prior")

  {

   Boundary("start 1");

   Phase("")

   {

    R_Date("test550_40", 550, 40)

    {

     Outlier("", 0.05);

    };

    R_Date("test500_40", 500, 40)

    {

     Outlier("", 0.05);

    };

    R_Date("test520_40", 520, 40)

    {

     Outlier("", 0.05);

    };

   };

   Boundary("end 1");

  };

  Order("AD 1370")

  {

   C_Date("AD 1370", 1370, 0.25);

   Date("=start 1");

   Date("=end 1");

  };

};

 

From: ox...@googlegroups.com ox...@googlegroups.com On Behalf Of Kita Chaves Damasio Macario
Sent: 14 September 2024 07:22
To: OxCal <ox...@googlegroups.com>
Subject: Re: TPQ as a query

 

-- WARNING: This is an external message. Please use caution when replying, opening attachments or clicking on any links in this e-mail.--

 

Kita Chaves Damasio Macario

unread,
Sep 14, 2024, 4:21:54 AMSep 14
to ox...@googlegroups.com
Thank you Alex.
This gives me what I need.
This is also what Erik suggested, now I see.
Thanks Alex, Eric and Seren for helping me :)

All the best

Kita



You received this message because you are subscribed to a topic in the Google Groups "OxCal" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/oxcal/ltGRbw7TyM4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to oxcal+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/oxcal/LO4P265MB3839FF8FD61BEBA5A3D86830A5662%40LO4P265MB3839.GBRP265.PROD.OUTLOOK.COM.
Reply all
Reply to author
Forward
0 new messages