srtsim_newlocs: Fit the marginal distributions for each row of a count matrix

View source: R/simSRTLocs.R

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

SRTsim documentation built on Jan. 13, 2023, 5:12 p.m.