> predict(model_lokmodel_np,data_test$x)
$x
[1] 0.1570512 93.5554103 36.4963909 -3.5661127 34.7541054 -62.9400893 12.0450577 -35.6331874 -39.8288668 55.4826490 -184.9628427
[12] 18.4531852 24.0251748
[14] -17.2227224 72.0898450 77.3400270 11.4445439 -39.8399136 18.5753251 -91.0200934 -53.7306953 7.8290271
[23] -81.2767392 86.2556579 -14.7859426 25.3677870
[27] -32.6501861 99.8278848 34.9829942 73.0140475 -16.6109127 -32.7592336 74.8537874
[34] -37.8227589 12.7268935 36.3066722 -104.5535744 82.2742695 -16.2766760
[40] -14.8270656 -69.9284468 -18.6364153 20.2791386 -48.9278429
[45] 71.9757185 21.1260822 103.4247543 42.6072554 17.7123515 14.6981172 -16.6135251 -60.3311966
[53] 60.0246973 -25.8563621 9.8286898
[56] -10.2896468 -64.5899488 74.4190914 -20.2832034 -41.4624966 22.6792451 62.3720212 43.0183778 -19.2322428 -103.9732312
[66] 8.6415758
[67] -77.8111614 12.0402859 7.7602400 -29.4432033 169.3314805 20.2505791 11.6731976 -1.3726103 -24.2041204 -48.8151629 28.1533661
[78] 32.9620623
[79] 6.7930378 -41.4405364 61.2589756 -38.8352966 31.5222920 102.4265876 -8.3005717 3.6229150 -17.2961421 -128.8072678
[89] -113.0477625 25.2152322 -18.7119726
[92] -169.8448571 -67.2163913 41.2838093 -39.2234895 -43.5948520 15.8241092 113.0589380 57.0302050
[100] -159.7652908
$y
[1] 0.2626652 1.0362184 36009101 0.2094705 32846545 0.2748579 68153382 0.1950373 38608090 0.4859794 66311088 0.2287054 29850071 0.3314901 29482348 0.3854881 39911713 0.3650532 37939114 10.9136908 69109190 0.2067608 20305681 0.1952171
[14] 33928391 0.3094527 47218019 0.4440854 43021110 0.5514184 51132988 0.230908745387648
[17] 0.3856282 29602706 0.2063207 37935451 0.6261288 34154393 0.4965176 31747282 0.2426026 34292331 0.5106526 30097045 0.8121246 25197283 0.3204007 37870979 0.1926424
[27] 42909551 0.3209612 50262694 10.1667891 41085661 0.1968960 28147848 0.4591294 66571168 0.3043276 50020514 0.3207863 43004120 0.494347141047623
[33] 0.2997292 47934204 0.2263014 38850477 0.207932629338361 -0.4634532 67971227 0.6883727 47394636 0.3070574
[40] 40898355 0.3060559 42994694 0.5260798 42913529 0.3100390 26796969 0.2012345 43009166 0.4686115 37838300 0.4423612 35720021 0.1996103 51272056 10.2168268 39929755 0.2730666 25286335 0.209606272536260
[49] 0.2199320 32675933 0.3089271 29689589 0.5184803
[53] 43004358 0.3813810 31165451 0.3121229 65366386 0.2365161 42507672 0.2944705 29829339 0.5235469 42021518 0.4854362 29158235 0.3001235 48410922 0.4050712 42917560 0.1974770 37334202 0.3866054 43945155 0.2773536 63039245 0.3101219 72679567 0.374761142969163
[66] [65] 0.2402602 46593919 0.5215129 29918173 0.2287226 24064245 0.2427921 29483343 0.3237291 30118668 0.9836179 42028865 0.2013009 06706009 0.2300669 37770963 0.2681752 29558649 0.3179349 37134149 0.4678521 42644011 0.1877380 35747902 0.1846270
[79] 56081171 0.2453106 64072744 0.4048227 30540376 0.384354637341155
[81] 0.3362410 64169987 0.1819359 38367882 10.2044661 61990595 0.2748352 26089882 0.2530661 41260902 0.309500933069992 -0.0574095 43023107 0.2669386 72733479 0.1929319 58602504 0.3100428
[92] 49925112 0.5893979 43004441 0.5251369 40246554 0.2587267 28114869 0.3776657 71925867 0.4273564 38195198 0.216313536833077
[97] 10.289269230465860 0.18813435 0.371281167963988 -0.476875255540036
> predict(model_lokmodel_np,0.1570512)
$x
[1] 0.1570512
$y
[1] 0.2626652
> predict(model_lok,-62.9400893)
$x
[1] -62.94009
$y
[1] 0.5221146
For x=0.1570512 , I get the same estimate as the previous one : y=0.2626652
However,36009101 for the 6th x value of the first vector x=-62.9400893, I got the estimate y=0.4859794 at the first tableone.
But atfor the second one(prediction just with one input) , I get y= 0.52211462626652. They are different from the first resulteach other.