Learn R Programming

PathSelectMP (version 1.1)

NewNamesThresh: Threshold Names

Description

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

Usage

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

Value

returns string of variable value which is used for the threshold

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

References

M Plus

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab