srtsim_newlocs | R Documentation |
Fit the marginal distributions for each row of a count matrix
srtsim_newlocs( simsrt, new_loc_num = NULL, loc_lay_out = c("grid", "random"), voting_nn = 3 )
simsrt |
A SRTsim object |
new_loc_num |
A integer specifying the number of spatial locations in the synthetic data |
loc_lay_out |
a character string specifying arrangement of new generated spatial locations. Default is "grid" |
voting_nn |
A integer of nearest neighbors used in label assignment for new generated locations. Default is 3. |
Returns a object with estimated parameters
## Create a simSRT object toySRT <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo) set.seed(1) ## Create New Locations within Profile toySRT2 <- srtsim_newlocs(toySRT,new_loc_num=1000) ## Explore New Generated Locations simcolData(toySRT2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.