srtsim_newlocs {SRTsim}R Documentation

Fit the marginal distributions for each row of a count matrix

Description

Fit the marginal distributions for each row of a count matrix

Usage

srtsim_newlocs(
  simsrt,
  new_loc_num = NULL,
  loc_lay_out = c("grid", "random"),
  voting_nn = 3
)

Arguments

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.

Value

Returns a object with estimated parameters

Examples


## 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)

[Package SRTsim version 0.99.6 Index]