NewNamesThresh: Threshold Names

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/NewNamesThresh.R

Description

Converts M Plus threshold names to the name of the category given in the data

Usage

1
2
NewNamesThresh(FileName, DataName, ThreshName, 
InitialData, Directry = getwd(), NADes = c(-99))

Arguments

FileName

name of .out Mplus file

DataName

name of .inp Mplus file

ThreshName

string threshold name given by M Plus

InitialData

dataframe used

Directry

the working directory which contains the folder which contains .inp and .out files

NADes

the value for missing data

Details

threshold names given by M Plus and consequently many output matrices in this package are designated starting with 1 and ordered, and this function converts 1 or other designation to the actual category in the data

Value

returns string of variable value which is used for the threshold

Note

make sure working directory is set to location of folder containing folder which contains .out m plus files

Author(s)

William Terry

References

M Plus

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
InitD=Simulate(MissingYN=1)
xxx=Initialize(InitD,NumImpute=3,WhichCat=c(1,1,1,1,0))
ggg=AllBackwardSelect(xxx[[1]])
yyy=AllSummary2(xxx[[1]])
zzz=AllSummary(xxx[[1]])[[2]]
qqq=AddOnAllInd(xxx[[1]],zzz)
NewNamesThresh("New_1000","NewData_1000","X$1",InitD)

## End(Not run)

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.