HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> constrain variables in HyPhy
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1378759049

Message started by student_of_evolution on Sep 9th, 2013 at 1:37pm

Title: constrain variables in HyPhy
Post by student_of_evolution on Sep 9th, 2013 at 1:37pm
Hi,

I am trying to devise a LRT (or perhaps use the AIC difference) where the null model is neutral evolution and the alternate model is selection.

For example Yang's M1a vs M2a does this (thus allows use of chisquare with df = 2)
M1a (neutral):
parameters: p0, w_0 < 1, w_1 = 1
M2a (selection):
parameters: p0, p1, w_0 < 1, w_1 = 1, w_2 > 1

I was thinking about setting the neutral model (using the general discrete bi variate distribution) to be:
beta_s <= alpha_s for all s
And alternate model is:
beta_s > alpha_s for at least one s

Can you constrain these variables in hyphy?

Title: Re: constrain variables in HyPhy
Post by Sergei on Sep 9th, 2013 at 2:22pm
Hi there,

The types of constraints you need can be implemented through ratios, e.g.

[code]

global R_0;

beta_0 := alpha_0 * R_0;

R_0 :< 1;

...

[/code]

Alternatively, you can use the ratio parameterization directly (e.g. see Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login)

Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.