The same code runs in R.exe but not in R Studio

Hello,

I'm using IVEWare software with R (IVEware with R | Survey Research Center). I tried to recreate the example on their website to run the software in R - it works in R.exe but it doesn't work in R Studio. My colleague who has Mac was able to run it in R Studio on Mac.
I use Windows - it doesn't work in R Studio (the error would say "Abnormal termination").

I talked to IVEWare support but they don't seem to know the reason, because it works in R Studio on Windows on their computer.

I wanted to understand what could be the reason that the same code would run in R.exe but not in R Studio - i.e. what can interfere on my Windows computer with the successful running of the code in R Studio, because the same code does work when running in R.exe.

Thank you very much for the help with much appreciation

think we need to see your code and some sample data. See:
FAQ Asking Questions

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```

```

can you also provide the output from


thanks,

Please see:

To reproduce the steps, first IVEWare needs to be downloaded on the computer with these instructions: IVEware Installation Guide | Survey Research Center

Then, I run this code in R

setwd("C:/Users/Ekaterina/Downloads/srclib_examples_windows/Examples")
mydata2 <- read.delim("mydata2.txt")
save(mydata2, file="mydata2.rda")
srclib <<- "C:/Program Files/Srclib/R"
source(file.path(srclib, "init.R", fsep=.Platform$file.sep))
sink("output.txt")
impute(name="impute")
sink()

This is mydata2 using dput(head(mydata2, 100))

structure(list(STUDYID = c("1001Z3", "1002Z3", "1003Z3", "1004Z3", 
"1005Z3", "1006Z2", "1007Z3", "1008Z3", "1009Z3", "1010Z3", "1011Z3", 
"1012Z2", "1013Z3", "1017Z2", "1018Z2", "1019Z3", "1021Z3", "1022Z3", 
"1023Z3", "1024Z3", "1025Z3", "1026Z2", "1028Z3", "1029Z2", "1030Z3", 
"1031Z3", "1032Z3", "1033Z3", "1034Z3", "1035Z3", "1036Z3", "1037Z3", 
"1038Z3", "1039Z2", "1040Z3", "1041Z3", "1042Z2", "1043Z3", "1044Z3", 
"1045Z3", "1046Z3", "1047Z3", "1048Z3", "1049Z3", "1050Z3", "1051Z3", 
"1052Z2", "1053Z2", "1054Z3", "1056Z2", "1057Z3", "1060Z3", "1061Z3", 
"1062Z2", "1063Z3", "1065Z3", "1066Z3", "1067Z3", "1068Z3", "1070Z3", 
"1071Z3", "1072Z3", "1073Z3", "1074Z3", "1076Z2", "1077Z3", "1078Z3", 
"1079Z3", "1080Z3", "1081Z3", "1082Z3", "1083Z2", "1084Z3", "1085Z3", 
"1086Z3", "1087Z3", "1088Z3", "1089Z2", "1090Z3", "1091Z3", "1092Z3", 
"1093Z3", "1094Z3", "1095Z3", "1096Z3", "1097Z3", "1098Z3", "1099Z3", 
"1100Z3", "1101Z3", "1102Z3", "1103Z3", "1104Z3", "1105Z3", "1106Z3", 
"1107Z3", "1108Z3", "1109Z3", "1110Z2", "1111Z2"), CASECNT = c(1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L), AGE = c(50L, 49L, 60L, 63L, 51L, 45L, 54L, 66L, 
66L, 54L, 70L, 70L, 70L, 60L, 59L, 57L, 52L, 64L, 72L, 52L, 72L, 
42L, 67L, 59L, 61L, 52L, 68L, 67L, 57L, 72L, 67L, 68L, 48L, 63L, 
73L, 72L, 47L, 63L, 72L, 57L, 54L, 71L, 54L, 55L, 67L, 64L, 51L, 
69L, 39L, 69L, 60L, 73L, 53L, 74L, 54L, 68L, 64L, 55L, 66L, 64L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, 3L, 3L, 
    3L, 1L, 3L, 2L, 3L, 2L, 1L, 3L, 1L, 2L, 2L, 3L, 3L, 1L, 2L, 
    1L, 3L, 3L, 1L, 1L, 3L, 2L, 3L, 2L, 2L, 2L, 1L, 3L, 2L, 2L, 
    2L, 2L, 3L, 1L, 3L, 2L, 1L, 1L, 2L, 2L, 3L, 1L, 1L), NUMCIG = c(30L, 
    NA, 10L, NA, 20L, 30L, 30L, 15L, NA, 2L, 40L, 30L, 30L, 40L, 
    20L, 15L, 3L, 40L, NA, 30L, 40L, 40L, NA, 20L, 20L, NA, NA, 
    40L, 40L, 40L, NA, NA, 20L, 60L, 40L, 20L, 40L, 20L, 20L, 
    NA, 30L, 20L, 20L, 40L, NA, NA, 20L, 20L, 30L, NA, NA, NA, 
    NA, 20L, NA, 40L, 20L, 20L, NA, 60L, 8L, 30L, NA, NA, 15L, 
    NA, 20L, 20L, 20L, 20L, NA, 40L, NA, 50L, 5L, NA, NA, 30L, 
    30L, 30L, 30L, 30L, NA, NA, 20L, 10L, 20L, 20L, 60L, 20L, 
    NA, 60L, 20L, NA, NA, 15L, 30L, 60L, NA, NA), YRSSMOKE = c(35L, 
    NA, 34L, NA, 6L, 30L, 25L, 49L, NA, 35L, 25L, 60L, 42L, 45L, 
    30L, 42L, 2L, 27L, NA, 34L, 40L, 25L, NA, 38L, 40L, 3L, NA, 
    50L, 39L, 40L, NA, NA, 20L, 47L, 50L, 25L, 20L, 40L, 10L, 
    NA, 30L, 30L, 30L, 40L, NA, NA, 38L, 50L, 25L, NA, NA, NA, 
    NA, 62L, NA, 52L, 50L, 30L, NA, 52L, 50L, 45L, 30L, NA, 35L, 
    NA, 30L, 15L, 40L, 50L, NA, 13L, NA, 45L, 45L, NA, NA, 30L, 
    40L, 45L, 40L, 30L, 33L, NA, 40L, 20L, 2L, 20L, 42L, 15L, 
    NA, 24L, 45L, NA, NA, 44L, 25L, 30L, NA, NA), FATINDEX = c(19L, 
    23L, 23L, 22L, 20L, 24L, 27L, 24L, 28L, 19L, 21L, 28L, 23L, 
    22L, 31L, 30L, 20L, 21L, 21L, 20L, 17L, 28L, 20L, 24L, 15L, 
    18L, 19L, 18L, 20L, 24L, 22L, 19L, 26L, 27L, 29L, 23L, 22L, 
    25L, 25L, 19L, 20L, 18L, 22L, 25L, 18L, 23L, 27L, 27L, 24L, 
    16L, 25L, 22L, 19L, 23L, 26L, 27L, 25L, 13L, 23L, 23L, 19L, 
    22L, 17L, 21L, 29L, 26L, 14L, 24L, 27L, 22L, 23L, 27L, 15L, 
    23L, 25L, 23L, 26L, 23L, 27L, 23L, 19L, 22L, 20L, 33L, 19L, 
    26L, 18L, 22L, 28L, 27L, 24L, NA, 24L, 23L, 22L, 17L, 22L, 
    19L, 24L, 17L), FAMMI = c(1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 
    0L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 
    1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 1L, 0L, 
    0L, 0L, 1L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 0L, 
    0L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 
    1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 
    0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 
    0L, 1L), EDUSUBJ3 = c(1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
    0L, 1L, 0L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 1L, 0L, 1L, 1L, 0L, 
    1L, 1L, 0L, 0L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 0L, 
    1L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 
    1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 
    1L, 1L, 1L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 
    0L, 0L, 1L, 1L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 
    1L), DHA_EPA = c(42.716571429, 6.0282857143, 0.9462857143, 
    0, 3.6642857143, 5.259876258, 5.259876258, 4.8557142857, 
    1.8514285714, 0, 3.5828571429, 0, 4.7875298969, 2.8697142857, 
    2.1582857143, 0.5065714286, 8.7505714286, 0.7045714286, 0.5065714286, 
    0.9257142857, 0, 0.4217142857, 1.212, 2.8242857143, 0.9308571429, 
    0.6994285714, 4.6114285714, 3.4388571429, 7.6037142857, 0.3159813771, 
    1.9165714286, 0.7448571429, 25.277142857, 1.4974285714, 6.4397142857, 
    1.4091428571, 9.7782857143, 3.3051428571, 1.7202857143, 2.4291428571, 
    20.188559707, 2.3194285714, 0, 12.147428571, 2.4737142857, 
    2.376, 5.3922857143, 0, 1.1622857143, 4.1374285714, 3.8408571429, 
    0.936, 1.4888571429, 4.6628571429, 0, 0.6505714286, 1.7588571429, 
    5.9554285714, 2.4145714286, 0.7097142857, 6.0582857143, 1.3165714286, 
    4.464, 0.4628571429, 4.8908571429, 1.8737142857, 1.7228571429, 
    0, 3.7028571429, 1.9568571429, 0, 14.045142857, 3.7748571429, 
    0.4628571429, 2.9442857143, 7.7262857143, 0.9745714286, 6.6754285714, 
    3.822, 0.2314285714, 3.2686153846, 1.416, 0, 4.584, 2.3871428571, 
    0.7054285714, 11.050285714, 5.4102857143, 4.1502857143, 2.2011428571, 
    4.05, 0.2314285714, 2.7462857143, 0.54, 4.062, 0.54, 0, 7.8762857143, 
    8.2182857143, 3.852), REDTOT = c(NA, NA, NA, 2.94, NA, NA, 
    NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 4.18, 3.24, 3.89, 
    NA, NA, NA, NA, 4.13, NA, NA, NA, 3.93, 6.74, NA, NA, NA, 
    NA, 4.72, 3.36, 5.21, NA, NA, NA, NA, NA, 3.75, NA, NA, NA, 
    NA, NA, 3.35, NA, NA, 4.4, 4.24, NA, NA, 3.66, NA, 6.19, 
    5.71, NA, 4.96, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 
    5.19, NA, 4.17, 4.03, 3.99, 5.51, NA, NA, 4.83, NA, NA, NA, 
    NA, NA, NA, NA, NA, NA, NA, 2.4, NA, NA, NA, NA, NA, NA, 
    NA, NA), CHOLESTH = c(0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 
    0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 0L, 1L, 1L, 
    1L, 1L, 0L, 0L, 0L, NA, 0L, 1L, 0L, 0L, NA, 0L, 0L, 0L, 0L, 
    1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 0L, 1L, 1L, 0L, 
    0L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 0L, 1L, NA, 1L, 0L, 0L, 
    0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 
    1L, 0L, 1L, NA, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 
    0L), CAFFTOT = c(642.42, 147.84, 719.368, 691.628, 189.44, 
    549.36, 2134.02, 248.32, 412.02, 473.6, 686.7, 549.36, 137.34, 
    549.36, 824.04, 415.716, 554.288, 137.34, 153.6, 15.093333333, 
    0, 696.18, 824.04, 295.16, 0, 0, 824.04, 146.496, 1373.4, 
    0, 0, 4.578, 1373.4, 1410.36, 0, 0, 961.38, 1098.72, 0, 412.02, 
    1098.72, 137.34, 565.62, 412.02, 1351.68, 274.68, 73.92, 
    322.04, 2060.1, 7.3886666667, 112.32, 274.68, 5.81, 0, 49.824, 
    54.936, 686.7, 549.36, 469.46, 1373.4, 0, 206.8, 36.96, 4.928, 
    104.18933333, 416.756, 460.8, 153.6, 1135.68, 415.716, 0, 
    0, 369.4, 167.552, 1648.08, 686.7, 274.68, 161.12, 549.36, 
    311.64, 1098.72, 0, 274.68, 1420.76, 596.72, 348.6, 23.872, 
    412.02, 348.6, 9.856, 223.296, 485.12, 385.56, 137.34, 1393.88, 
    73.92, 1098.72, 824.04, 287.30933333, 348.6), WGTKG = c(104.3257, 
    124.73725, 70.30645, 68.0385, 71.66722, 79.37825, 90.718, 
    84.36774, 95.2539, 63.5026, 70.30645, 78.47107, 52.16285, 
    74.84235, 62.14183, 72.5744, 72.5744, 77.1103, 66.67773, 
    83.91415, 58.9667, 102.05775, 106.59365, 83.91415, 88.45005, 
    81.6462, 70.30645, 68.0385, 95.2539, 64.40978, 89.35723, 
    74.84235, 81.6462, 86.1821, 104.3257, 86.1821, 81.6462, 77.1103, 
    79.37825, 74.84235, 113.3975, 92.98595, 72.5744, 132.90187, 
    108.8616, 72.5744, 87.08928, 68.0385, 95.2539, 63.5026, 97.52185, 
    61.23465, 73.93517, 65.77055, 74.84235, 86.1821, 79.37825, 
    70.30645, 90.718, 99.7898, NA, 92.98595, 108.8616, 99.7898, 
    83.91415, 63.5026, 95.2539, 81.6462, 77.1103, 72.5744, 77.1103, 
    99.7898, 83.91415, 72.5744, 61.23465, 113.3975, 129.27315, 
    70.30645, 124.73725, 81.6462, 74.84235, 81.6462, 70.30645, 
    56.69875, 50.80208, 72.5744, 124.73725, 99.7898, 83.91415, 
    122.4693, 76.20312, 63.5026, 78.01748, 61.23465, 83.91415, 
    77.1103, 90.718, 66.67773, 77.1103, 74.84235), TOTLKCAL = c(986.53846154, 
    1370.7692308, 3537.6923077, 457.5, 2507.8846154, 55.384615385, 
    131.53846154, 2627.3076923, 0, 0, 1028.0769231, 1057.2115385, 
    272.30769231, 643.84615385, 88.269230769, 610.96153846, 41.730769231, 
    8016.9230769, 3046.1538462, 1173.8942308, 20.769230769, 140.19230769, 
    1869.2307692, 347.5, 415.38461538, 3433.8461538, 159.23076923, 
    934.61538462, 0, 0, 1626.9230769, 1122.6923077, 0, 270, 555.57692308, 
    272.59615385, 1494.2307692, 0, 155.76923077, 276.92307692, 
    2932.75, 1105.9615385, 591.92307692, 138.46153846, 816.92307692, 
    0, 249.23076923, 2035.3846154, 93.461538462, 6840, 1633.8461538, 
    1246.1538462, 768.46153846, 129.23076923, 83.076923077, 242.30769231, 
    1578.4615385, 830.76923077, 93.461538462, 0, 934.61538462, 
    0, 0, 166.15384615, 0, 0, 0, 498.46153846, 15421.153846, 
    415.38461538, 923.07692308, 1869.2307692, 550.38461538, 10.384615385, 
    0, 155.76923077, 0, 529.61538462, 51.923076923, 124.61538462, 
    468.17307692, 477.69230769, 743.84615385, 1775.7692308, 728.93188137, 
    0, 1007.3076923, 186.92307692, 3895.5288462, 0, 222.76595745, 
    1031.5384615, 4059.6923077, 3166.1538462, 673.84615385, 0, 
    1536.9230769, 69.230769231, 1235.7692308, 249.23076923), 
    ALCOHOL3 = c(7.5666666667, 0, 2.6666666667, 3.1, 2, 0, 0, 
    0.4, 0, 0, 0.0666666667, 4, 2, 2.4, 0.1333333333, 0.0666666667, 
    0.0333333333, 0, 0.0666666667, 0, 0, 0, 0, 0, 0.2666666667, 
    0.2666666667, 0.0666666667, 0.0333333333, 16, 17, 0, 0, 18.4, 
    0, 0, 2, 0.3, 0, 0, 1.6333333333, 3.1, 1, 1.6666666667, 0.1333333333, 
    0, 0, 0, 1.1, 0, 0.5666666667, 0, 0.2666666667, 0, 0, 0, 
    0.0333333333, 0, 0, 0, 1, 0.8, 0, 0, 0.0666666667, 0, 0.0333333333, 
    0, 0, 0.0333333333, 0.2666666667, 0, 12, 0, 4.5333333333, 
    0.1, 0, 0, 2, 0.5333333333, 3, 2.2666666667, 8, 0, 1, 0.3333333333, 
    0, 0.0333333333, 2.1333333333, 0.0666666667, 0.2, 1.3, 0, 
    0, 0, 0, 1, 0.5333333333, 0, 0.6, 0), HGTCM = c(180.34, 177.8, 
    170.18, 172.72, 180.34, 175.26, 182.88, 180.34, 182.88, 170.18, 
    172.72, 180.34, 172.72, 180.34, 170.18, 177.8, 182.88, 180.34, 
    157.48, 175.26, 154.94, 170.18, 180.34, 177.8, 190.5, 180.34, 
    180.34, 172.72, 175.26, 170.18, 187.96, 185.42, 182.88, 182.88, 
    182.88, 187.96, 167.64, 170.18, 177.8, 180.34, 182.88, 182.88, 
    167.64, 187.96, 177.8, 187.96, 180.34, 180.34, 175.26, 170.18, 
    190.5, 172.72, 172.72, 177.8, 177.8, 175.26, 185.42, 170.18, 
    180.34, 182.88, 172.72, 177.8, 182.88, 172.72, 182.88, 167.64, 
    185.42, 190.5, 182.88, 180.34, 175.26, 182.88, 180.34, 177.8, 
    167.64, 177.8, 175.26, 175.26, 187.96, 185.42, 170.18, 180.34, 
    182.88, 157.48, 157.48, 162.56, 182.88, 177.8, 182.88, 187.96, 
    177.8, 162.56, 177.8, 170.18, 177.8, 177.8, 175.26, 170.18, 
    172.72, 180.34)), row.names = c(NA, 100L), class = "data.frame")

When the code runs successfully in the R.exe, this is what is printed in the console using dput(head(output, 100))

structure(list(IVEware.Setup.Checker..Tue.Oct.17.15.09.05.2023..................................1 = c("Setup listing:", 
"title Multiple imputation;", "datain mydata2;", "dataout impute;", 
"default continuous;", "categorical casecnt gender race3 hyper diab smoke fammi edusubj3 cholesth;", 
"mixed cafftot alcohol3;", "transfer studyid;", "restrict numcig(smoke=2,3) yrssmoke(smoke=2,3);", 
"bounds numcig(>0) yrssmoke(>0,<=age-12) fatindex(>0) cafftot(>=0) alcohol3(>=0);", 
"maxpred redtot(3) wgtkg(2);", "minrsqd .01;", "iterations 5;", 
"multiples 5;", "seed 2001;", "run;", "\fIVEware Iterative Imputation Procedure, Tue Oct 17 15:09:09 2023                 1", 
"Multiple imputation", "Imputation 1", "Variable          Observed           Imputed    Double counted", 
"CASECNT                898                 0                 0", 
"AGE                    898                 0                 0", 
"GENDER                 898                 0                 0", 
"RACE3                  897                 1                 0", 
"HYPER                  890                 8                 0", 
"DIAB                   894                 4                 0", 
"SMOKE                  896                 2                 0", 
"NUMCIG                 454               444                 0", 
"YRSSMOKE               489               409                 0", 
"FATINDEX               864                34                 0", 
"FAMMI                  891                 7                 0", 
"EDUSUBJ3               898                 0                 0", 
"DHA_EPA                898                 0                 0", 
"REDTOT                 498               400                 0", 
"CHOLESTH               884                14                 0", 
"CAFFTOT                896                 2                 0", 
"WGTKG                  845                53                 0", 
"TOTLKCAL               898                 0                 0", 
"ALCOHOL3               897                 1                 0", 
"HGTCM                  896                 2                 0", 
"Variable RACE3", "                  Observed           Imputed          Combined", 
"    Code       Freq    Per       Freq    Per       Freq    Per", 
"       0         55   6.13          0   0.00         55   6.12", 
"       1        842  93.87          1 100.00        843  93.88", 
"   Total        897 100.00          1 100.00        898 100.00", 
"Variable HYPER", "                  Observed           Imputed          Combined", 
"    Code       Freq    Per       Freq    Per       Freq    Per", 
"       0        709  79.66          6  75.00        715  79.62", 
"       1        181  20.34          2  25.00        183  20.38", 
"   Total        890 100.00          8 100.00        898 100.00", 
"Variable DIAB", "                  Observed           Imputed          Combined", 
"    Code       Freq    Per       Freq    Per       Freq    Per", 
"       0        831  92.95          4 100.00        835  92.98", 
"       1         63   7.05          0   0.00         63   7.02", 
"   Total        894 100.00          4 100.00        898 100.00", 
"Variable SMOKE", "                  Observed           Imputed          Combined", 
"    Code       Freq    Per       Freq    Per       Freq    Per", 
"       1        354  39.51          1  50.00        355  39.53", 
"       2        364  40.62          1  50.00        365  40.65", 
"       3        178  19.87          0   0.00        178  19.82", 
"\fIVEware Iterative Imputation Procedure, Tue Oct 17 15:09:09 2023                 2", 
"Multiple imputation", "Variable SMOKE", "                  Observed           Imputed          Combined", 
"   Total        896 100.00          2 100.00        898 100.00", 
"Variable NUMCIG", "                  Observed           Imputed          Combined", 
"  Number               454               444               898", 
" Minimum                 0                 0                 0", 
" Maximum                98           58.8933                98", 
"    Mean           22.7004           5.14628           14.0211", 
" Std Dev           14.3406             11.54            15.708", 
"Variable YRSSMOKE", "                  Observed           Imputed          Combined", 
"  Number               489               409               898", 
" Minimum                 1                 0                 0", 
" Maximum                63           49.8549                63", 
"    Mean           28.1554           3.32277           16.8452", 
" Std Dev            14.677            9.8135           17.7231", 
"Variable FATINDEX", "                  Observed           Imputed          Combined", 
"  Number               864                34               898", 
" Minimum                10           12.3852                10", 
" Maximum                33           31.5658                33", 
"    Mean           21.5625           20.9838           21.5406", 
" Std Dev           3.94349           4.58322           3.96821", 
"Variable FAMMI", "                  Observed           Imputed          Combined", 
"    Code       Freq    Per       Freq    Per       Freq    Per", 
"       0        487  54.66          3  42.86        490  54.57", 
"       1        404  45.34          4  57.14        408  45.43", 
"   Total        891 100.00          7 100.00        898 100.00", 
"Variable REDTOT", "                  Observed           Imputed          Combined", 
"  Number               498               400               898", 
" Minimum              1.97          0.289395          0.289395"
)), row.names = c(NA, 100L), class = "data.frame")

The code produces the output file like this using dput(head(imp, 10))

structure(list(STUDYID = c("1001Z3", "1002Z3", "1003Z3", "1004Z3", 
"1005Z3", "1006Z2", "1007Z3", "1008Z3", "1009Z3", "1010Z3"), 
    CASECNT = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), AGE = c(50, 49, 
    60, 63, 51, 45, 54, 66, 66, 54), GENDER = c(0, 0, 0, 0, 0, 
    0, 0, 0, 0, 1), RACE3 = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), 
    HYPER = c(1, 1, 0, 0, 0, 0, 0, 1, 0, 0), DIAB = c(0, 0, 0, 
    0, 0, 0, 0, 0, 1, 0), SMOKE = c(3, 1, 2, 1, 2, 2, 3, 3, 1, 
    3), NUMCIG = c(30, 0, 10, 0, 20, 30, 30, 15, 0, 2), YRSSMOKE = c(35, 
    0, 34, 0, 6, 30, 25, 49, 0, 35), FATINDEX = c(19, 23, 23, 
    22, 20, 24, 27, 24, 28, 19), FAMMI = c(1, 1, 0, 1, 1, 1, 
    1, 0, 0, 0), EDUSUBJ3 = c(1, 0, 1, 1, 1, 1, 1, 1, 1, 0), 
    DHA_EPA = c(42.716571429, 6.0282857143, 0.9462857143, 0, 
    3.6642857143, 5.259876258, 5.259876258, 4.8557142857, 1.8514285714, 
    0), REDTOT = c(8.18420301971081, 6.49113779241103, 2.75971317015073, 
    2.94, 5.10454751747174, 6.07201976217756, 3.22042202729345, 
    5.73669456605955, 3.6216837611374, 1.08474980044133), CHOLESTH = c(0, 
    0, 0, 1, 0, 0, 0, 0, 0, 0), CAFFTOT = c(642.42, 147.84, 719.368, 
    691.628, 189.44, 549.36, 2134.02, 248.32, 412.02, 473.6), 
    WGTKG = c(104.3257, 124.73725, 70.30645, 68.0385, 71.66722, 
    79.37825, 90.718, 84.36774, 95.2539, 63.5026), TOTLKCAL = c(986.53846154, 
    1370.7692308, 3537.6923077, 457.5, 2507.8846154, 55.384615385, 
    131.53846154, 2627.3076923, 0, 0), ALCOHOL3 = c(7.5666666667, 
    0, 2.6666666667, 3.1, 2, 0, 0, 0.4, 0, 0), HGTCM = c(180.34, 
    177.8, 170.18, 172.72, 180.34, 175.26, 182.88, 180.34, 182.88, 
    170.18)), row.names = c(NA, 10L), class = "data.frame")

It runs successfully in R.exe but running the same steps in R Studio produces error "Abnormal termination of iveset"

Thank you very much for the help with much appreciation

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.