public class AddPlusDomModelEffect implements ModelEffect
A ModelEffect that takes an AdditiveSite as an argument and uses the additiveCovariate from that object to compute a covariate representing dominance. In general, the AdditiveSite will be supplied as the id, although that is not a requirement. The dominance values are calculated as 1 - abs(x - 1) where x is the addivitive value. The values of x are expected to be 0, 1, 2, where 0 and 1 are homozygous genotypes and 1 is the het.
public AddPlusDomModelEffect(AdditiveSite id, AdditiveSite addSite)
public AddPlusDomModelEffect(AdditiveSite id, kotlin.Array[] additiveCovariate)
public java.lang.Object getID()
public void setID(java.lang.Object id)
public int getSize()
public DoubleMatrix getX()
public DoubleMatrix getXtX()
public DoubleMatrix getXty(kotlin.Array[] y)
public DoubleMatrix getyhat(DoubleMatrix beta)
public DoubleMatrix getyhat(kotlin.Array[] beta)
public kotlin.Array[] getLevelCounts()
public int getNumberOfLevels()
public int getEffectSize()
public ModelEffect getCopy()
public ModelEffect getSubSample(kotlin.Array[] sample)