Skip to content

Commit

Permalink
Update simNPIV.m
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymchristensen committed Mar 25, 2017
1 parent 55f000b commit d23c003
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions replication/simNPIV.m
@@ -1,16 +1,5 @@
function [Y,X,W,H0] = simNPIV(N,s2,design)

% Sig = [1 .8 .5; .8 1 0; .5 0 1];
% R = chol(Sig);
% Z = randn(N,3)*R;
%
% X = normcdf(Z(:,1));
% W = normcdf(Z(:,2));
% U = sqrt(s2)*Z(:,3);
% H0 = H0fun(X,design);
% Y = H0 + U;


Sig = [1 .5 0; .5 1 0; 0 0 1];
R = chol(Sig);
Z = randn(N,3)*R;
Expand All @@ -21,11 +10,6 @@
X = normcdf((W + V)/sqrt(2));
W = normcdf(Z(:,3));

%
%
% X = normcdf(Z(:,1));
% W = normcdf(Z(:,2));
% U = sqrt(s2)*Z(:,3);
H0 = H0fun(X,design);
Y = H0 + sqrt(s2)*U;

0 comments on commit d23c003

Please sign in to comment.