indiv_addGlobalParsToGridlist | R Documentation |
Add single-valued parameters to the pargrids
indiv_addGlobalParsToGridlist(pars, gridlist, FLAGoverwrite = FALSE)
pars |
character or numeric |
gridlist |
list(fix.grid, est.grid) |
FLAGoverwrite |
Overwrite existing parameters in fix.grid or est.grid? |
gridlist
Daniel Lill (daniel.lill@physik.uni-freiburg.de)
pars <- c(NewParSymbolic = "NewParSymbolic", NewParFixed = 1)
est.grid <- data.table(ID = 1:2,
condition = c("A", "B"),
k1 = c("k1_A", "k1_B"),
k2 = c("k2_A", "k2_B"),
k3 = c("k3", NA),
k4 = c("k4", "k4"),
stringsAsFactors = FALSE)
fix.grid <- data.table(ID = 1:2,
condition = c("A", "B"),
k3 = c(NA, 3.5),
k5 = c(5.1,5.2),
k6 = c(6,6),
stringsAsFactors = FALSE)
indiv_addGlobalParsToGridlist(c(NewParSymbolic = "NewParSymbolic", NewParFixed = 1), gridlist(est.grid = est.grid, fix.grid = fix.grid))
indiv_addGlobalParsToGridlist(c(k1 = 1), gridlist(est.grid = est.grid, fix.grid = fix.grid), FLAGoverwrite = FALSE) # nothing happens
indiv_addGlobalParsToGridlist(c(k1 = 1), gridlist(est.grid = est.grid, fix.grid = fix.grid), FLAGoverwrite = TRUE) # k1 is replaced and moved to fix.grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.