structed.perm | R Documentation |
Generate the structured samples of simple random samples
structed.perm(permatrix, jcom, d)
permatrix |
a matrix, each row is a permutation. |
jcom |
an integer, represents the target component. Hope that the component jcom appears the same number of at each position. |
d |
the number of components. |
a matrix represents the structured samples.
temp_samples<-matrix(nrow=10,ncol=5)
for(i in 1:10){temp_samples[i,]<-sample(1:5,5)}
structed.perm(temp_samples,3,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.