PatientDesignExample: Create example design matrix in the format required for...

Description Usage Arguments Value

View source: R/bsd_package.R

Description

This function creates one possible design matrix as an input for the function MakePatientRates This particular design matrix features one covariate uniformly sampled between 6 and 10, as well as a row of 1's corresponding to an intercept term. The design matrix is thus 2 by number of patients

Usage

1
  PatientDesignExample(num.patients)

Arguments

num.patients

An integer giving the number of patients in the design matrix

Value

A 2 by num.patients matrix: the first row is constant 1's corresponding to intercepts, and second row is a patient-specific covariate sampled uniformly between 6 and 10


jasonxu90/bdsem documentation built on May 18, 2019, 5:54 p.m.