Description Usage Arguments Details Value Note Author(s) References Examples
View source: R/NewNamesThresh.R
Converts M Plus threshold names to the name of the category given in the data
1 2 | NewNamesThresh(FileName, DataName, ThreshName,
InitialData, Directry = getwd(), NADes = c(-99))
|
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 |
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
returns string of variable value which is used for the threshold
make sure working directory is set to location of folder containing folder which contains .out m plus files
William Terry
M Plus
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.