Learn R Programming

prome (version 2.0.1.9)

blinding.lslogit: Latent Shift Logistic Regression

Description

To be updated.

Usage

blinding.lslogit(x, group, guess, mu0 = 0, s0 = 1, ...)

Value

  • `sig.sham`: sd of effect size of sham treatment.

Arguments

x,guess

outcome variable and guess response from blinding survey

group

group assignments. Current version support one or two groups only

mu0,s0

initial mean and sd of the latent variable of having sham effects

...

Parameters ("adapt_delta","stepsize","max_treedepth") to improve model fitting/convergence.

Examples

Run this code
# \donttest{
guess <- rbinom(100,1,0.5)
group <- rbinom(100,1,0.5)
x <- rnorm(100,3,1)
blinding.lslogit(x=x,group=group,guess=guess)
# }

Run the code above in your browser using DataLab