PMM: Function to perform Pattern Mixture Model for the Repeated...

Description Usage Arguments Value

Description

It runs the nonignorable analyses of the RAM-PMM approach on a dataset provided by the user

Usage

1
2
3
PMM(Dataset, Modelfile, Response = "Y2", BaselineResponse = "Y1",
  Attempts = "R", Intervention = "Z", NumberofIndicators = 3,
  n.chains = 2, n.adapt = 1000, AttemptsMax = 3, ParamSens = 0)

Arguments

Dataset

A data file ( txt/csv) having coulmns that are named and placed in a specific order.

Modelfile

A JAGS model file that rjags will use to simulate a model via JAGS installed at User's system.

Response

Column having values for 'Response'. Users must either have name 'Y2' for this column in their data or provide the name for this column as per their dataset.

BaselineResponse

Column having values for 'Baseline Response'. Users must either have name 'Y1' for this column in their data or provide the name for this column as per their dataset.

Attempts

Column having values 'Number of Attempts'. Users must either have name 'R' for this column in their data or provide the name for this column as per their dataset.

Intervention

Column having values for 'Intervention'. Users must either have name 'Z' for this column in their data or provide the name for this column as per their dataset.

NumberofIndicators

Number of Indicator Centers (Xs). The User dataset must have Xs starting from 5th column and ending as the last column of the dataset.

n.chains

Parallel chains for the model

n.adapt

The number of iterations for adaptation.

AttemptsMax

Maximum Number of Attempts to collect the output

ParamSens

The Sensitivity Parameter C; Possible Values 0,1,2,3.

Value

The summary of the posterior distribution. User will get an object named 'Results' in the global environment. Corresponding values for any particular column can be obtained by Results$columnname.


mjdaniels/PatternMixtureModelforRepeatedAttemptData documentation built on May 23, 2019, 12:53 a.m.