You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing validation, I realized that there is a slight discrepancy between the phenotype simulation output of tstrait and AlphaSimR, and it was due to the degrees of freedom input when computing the standard deviation https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.std.html. AlphaSimR uses $N$ as a divisor instead of $N-1$, so we should also add one more input ddof to normalise_phenotypes function, such that the user can define how the standard deviation is being computed.
The text was updated successfully, but these errors were encountered:
FYI We do this because our AlphaSimR populations have all the data so we are not calculating sample variance, but population variance
Thank you for letting me know about it. I digged inside the AlphaSimR code to find out where the discrepancy is coming from, and I'm glad to hear your explanation.
When performing validation, I realized that there is a slight discrepancy between the phenotype simulation output of tstrait and AlphaSimR, and it was due to the degrees of freedom input when computing the standard deviation https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.std.html. AlphaSimR uses$N$ as a divisor instead of $N-1$ , so we should also add one more input
ddof
tonormalise_phenotypes
function, such that the user can define how the standard deviation is being computed.The text was updated successfully, but these errors were encountered: