getPalytic: getPalytic, a function to create a Palytic object from...

View source: R/getPalytic.R

getPalyticR Documentation

getPalytic, a function to create a Palytic object from PersonAlytics output

Description

getPalytic, a function to create a Palytic object from PersonAlytics output

Usage

getPalytic(
  output,
  data,
  rowNum,
  id = NULL,
  dv = NULL,
  target_iv = NULL,
  ids = NULL
)

Arguments

output

Character. The path to a csv file produced by the PersonAlytic function or the data.frame returned by the PersonAlytic function.

data

Data Frame. The same data provided to your PersonAlytic run.

rowNum

Numeric. The row number you want to create a Palytic object for. Set to NULL if id, dv, target_iv, and ids will be provided, noting that all four of these parameters must be specified except target_iv, but only if target_iv is not a column in output.

id

Character. The value in the 'id' column of output.

dv

Character. The value in the 'dv' column of output.

target_iv

Character. The value in the 'target_iv' column of output. Leave as NULL if this column is absent in output.

Author(s)

Stephen Tueller stueller@rti.org

Examples

## Not run: 

t1 <- PersonAlytic(output          = 'Test1'     ,
                   data            = OvaryICT    ,
                   ids             = "Mare"      ,
                   dvs             = "follicles" ,
                   phase           = "Phase"     ,
                   time            = "Time"      ,
                   package         = "arma"      ,
                   individual_mods = TRUE        )
 Mare1 <- getPalytic('Test1_PersonAlytic.csv', data=OvaryICT, rowNum=1)


## End(Not run)


ICTatRTI/PersonAlytics documentation built on Dec. 13, 2024, 11:06 p.m.