Description Usage Arguments Details Value
Generate simulation datasets for change point Monte Carlo studies.
1 2 3 4 5 6 7 8 9 10 11  sim.chngpt (
label=c("sigmoid2","sigmoid3","sigmoid4","sigmoid5","sigmoid6","quadratic",
"quadratic2b","cubic2b","exp","flatHyperbolic"),
n, seed,
type=c("NA","step","hinge","segmented","segmented2","stegmented"),
family=c("binomial","gaussian"),
x.distr=c("norm","norm3","norm6","imb","lin","mix","gam","zbinary","gam1","gam2"),
e.=NULL, b.transition=Inf,
beta=NULL, coef.z=log(1.4), alpha=NULL,
sd=0.3, mu=4.7, sd.x=NULL,
alpha.candidate=NULL, verbose=FALSE)

label 
string. Simulate scenario, see details. 
type 
string. Types of threshold effect to simulate, only applicable when label does not start with sigmoid. 
family 
string. Glm family. 
n 

seed 

beta 

coef.z 
numeric. Coefficient for z. 
alpha 
numeric, intercept. 
mu 
numeric 
sd.x 
numeric 
x.distr 
string. Possible values: norm (normal distribution), gam (gamma distribution). gam1 is a hack to allow e. be different 
e. 

verbose 
Boolean 
b.transition 

sd 

alpha.candidate 
candidate values of alpha, used in code to determine alpha values 
When label is "sigmoid1", an intercept only model is the data generative model. When label is "sigmoid2", a binary covariate z is also part of the data generative model.
A data frame with following columns:
y 
0/1 outcome 
x 
observed covariate that we are interested in 
x.star 
unobserved covariate that underlies x 
z 
additional covariate 
In addition, columns starting with 'w' are covariates that we also adjust in the model; columns starting with 'x' are covariates derived from x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.