Skip to content

Commit

Permalink
only code layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tappek committed Dec 27, 2024
1 parent c9f4b71 commit a3bec23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/est_gmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ pgmm <- function(formula, data, subset, na.action,
W1[[i]] <- cbind(W1[[i]], V1)
}
else{
W2[[i]] <- cbind(W2[[i]], V2)
W2[[i]] <- cbind( W2[[i]], V2)
yX2[[i]] <- cbind(yX2[[i]], V2)
}
}
Expand Down Expand Up @@ -497,7 +497,7 @@ pgmm <- function(formula, data, subset, na.action,

if (transformation == "ld"){
for (i in seq_len(N)){
W1[[i]] <- bdiag(W1[[i]], W2[[i]])
W1[[i]] <- bdiag( W1[[i]], W2[[i]])
yX1[[i]] <- rbind(yX1[[i]], yX2[[i]])
if (normal.instruments) Z1[[i]] <- bdiag(Z1[[i]], Z2[[i]])
}
Expand All @@ -512,7 +512,7 @@ pgmm <- function(formula, data, subset, na.action,
##### 11. Compute the estimator
#################################################################

W <- W1
W <- W1
yX <- yX1

# Compute the first step matrices
Expand Down

0 comments on commit a3bec23

Please sign in to comment.