mirror of
https://github.com/MillironX/beefblup.git
synced 2024-12-22 09:08:16 +00:00
Removed null observations from incidence matrix
This commit is contained in:
parent
bd44916781
commit
dfddabde76
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@ Y = cell2mat(data(:, 5));
|
|||
% The identity matrix for random effects
|
||||
Z = eye(numanimals, numanimals);
|
||||
|
||||
% Remove items where there is no data
|
||||
nullobs = find(isnan(Y));
|
||||
Z(nullobs, nullobs) = 0;
|
||||
|
||||
% Prompt for heritability
|
||||
h2 = input('What is the heritability for this trait? >> ');
|
||||
lambda = (1-h2)/h2;
|
||||
|
|
Loading…
Reference in a new issue