Skip to content

Commit e7e75a1

Browse files
author
Keith Goldfeld
committed
Shortening runtime of vignette for submission
1 parent 9fedd20 commit e7e75a1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vignettes/corelationmat.Rmd

+3-4
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ R <- blockDecayMat(ninds = N , nperiods = 3, rho_w = 0.6, r = r, nclusters = 10)
726726
lapply(R, function(x) round(x,2))[c(1, 3, 7)]
727727
```
728728

729-
And here are the empirical correlation matrices for the three sites, based on 5000 replications of the data:
729+
And here is code to generate the empirical correlation matrices for the three sites, based on 5000 replications of the data:
730730

731-
```{r, eval=TRUE}
731+
```{r, eval=FALSE}
732732
reps <- lapply(1:5000,
733733
function(x) addCorGen(dd, idvar = "site", corMatrix = R,
734734
dist = "poisson", param1 = "lambda", cnames = "y")
@@ -743,9 +743,8 @@ empir_corr <- function(cluster) {
743743
744744
return(round(cor(dmat), 2))
745745
}
746-
```
747746
748-
```{r, eval=TRUE}
747+
749748
empir_corr(cluster = 1)
750749
empir_corr(cluster = 3)
751750
empir_corr(cluster = 7)

0 commit comments

Comments
 (0)