https://github.com/tansey/smoothfdr
Revision c5b693d0a66e83c9387433b33c0eab481bd4a763 authored by Wesley Tansey on 08 May 2020, 15:42:20 UTC, committed by Wesley Tansey on 08 May 2020, 15:42:20 UTC
1 parent 49cb69c
Raw File
Tip revision: c5b693d0a66e83c9387433b33c0eab481bd4a763 authored by Wesley Tansey on 08 May 2020, 15:42:20 UTC
Fixed bug in easy that created too large a support for the alternative distribution
Tip revision: c5b693d
hmrfPrep1.m
function []=hmrfPrep1(expdir)
    data = csvread(strcat(expdir,'data.csv'), 0, 0);
    flatdata = reshape(data, 1, []);
    dlmwrite(strcat(expdir,'flatdata.csv'), flatdata);
    flatdata_pvalues = normcdf(-abs(flatdata),0,1) * 2;
    dlmwrite(strcat(expdir,'flatdata_pvalues.csv'), flatdata_pvalues);
    exit
end
back to top