Scale Data to Range Between Two Values in R | Standardize 0/1 & Rescale | scales Package | min & max

  Рет қаралды 3,520

Statistics Globe

Statistics Globe

Күн бұрын

Пікірлер: 18
@larissacury7714
@larissacury7714 2 жыл бұрын
Thank you very much!
@StatisticsGlobe
@StatisticsGlobe 2 жыл бұрын
You're very welcome Larissa, glad you liked it!
@haraldurkarlsson1147
@haraldurkarlsson1147 3 жыл бұрын
Good stuff Joachim, I think this is basically the same process as generating Z values by "normalizing" the data.
@StatisticsGlobe
@StatisticsGlobe 3 жыл бұрын
See your other comment :)
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 3 жыл бұрын
Thank you so much for the video and explanation. in fact I have a problem with my dataset and I tried to apply your syntax for rescaling and it did not work. I have two ordinal indicators that measure the same dependent variable and I wanted to create an index that combines both of them. Both are ordinal variables that range from very high to not at all. The problem is that one indicator has a 1-5 scale and other from 1-10. I tried to rescale the smaller one to be 1-10 scale and it did not work unfortunately. don't know what to do. I wish you a merry Christmas and happy new year. Many thanks :)))
@StatisticsGlobe
@StatisticsGlobe 3 жыл бұрын
Hey Mahmoud, thank you for the very kind words! :) Could you share the code you have used so far, and the output that it has produced? Merry Christmas and a happy new year to you as well!
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 2 жыл бұрын
Hey Joachim, :) I have a small question: I have a set of variables I am using to create an index, three variables have the scale from 1-4, other variable from 1-7, other one from 1-8 and other one from 1-10. Since they are all having different scales, I decided to rescale them to the highest, so from 1-10. It worked and I have the cronbach Alpha value of 0.85, but I noticed that this statement is written in the R Console exactly before the results of chronbach Alpha: "Number of categories should be increased in order to count frequencies." I tried to ignore it sicne everything is working so far so good with the index and the regression analysis, but I wianted to check what does it means and if it is a serious problem or so. Thank you sooo much :))))))
@StatisticsGlobe
@StatisticsGlobe 2 жыл бұрын
Hey Mahmoud, unfortunately, I'm not an expert on chronbach Alpha. However, I have found this thread on Stack Overflow, which discusses this warning message: stackoverflow.com/questions/65113692/r-lack-of-cronbachs-alpha-information I hope that helps! Joachim
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 2 жыл бұрын
@@StatisticsGlobe Thank you soooooo much :)
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 3 жыл бұрын
Hallo, I am trying to write here a comment of my code but it is always unfortunately deleted. I don't know what is wrong with the youtube :((((
@StatisticsGlobe
@StatisticsGlobe 3 жыл бұрын
Hey Mahmoud, this is strange, I also cannot see it in the spam folder of the comments. Could you try to post your comment once again?
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 3 жыл бұрын
@@StatisticsGlobe Hallo Jochaim, I hope this time it works. Thank you so much for your concern :)) I used the folloing code : Happiness
@StatisticsGlobe
@StatisticsGlobe 3 жыл бұрын
You are very welcome! :) Maybe the function "rescale" is overwritten by another package? Does it work if you use the following code? Happiness
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 3 жыл бұрын
@@StatisticsGlobe I believe it works now😊😊I do not really know how to thank you for your help and concerns😍Das is sehr lieb..Ganz ganz vielen Dank☺
@mahmoudmoustafamohammed5896
@mahmoudmoustafamohammed5896 3 жыл бұрын
I have a small question again sorry :( if the old score is progressive (like from low to high) the new scale will be the same or? and is it possible to change change the change the scale like to make it progressive or descending (from high to low) ? Many thanks :))
@haraldurkarlsson1147
@haraldurkarlsson1147 3 жыл бұрын
I realize that Z of course normalized with mean and stdev so it is not the same.
@StatisticsGlobe
@StatisticsGlobe 3 жыл бұрын
Yes, it's a slightly different approach :)
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 249 М.
Principal Component Analysis in R
6:55
Matthew Peterson
Рет қаралды 11 М.
Japanese||a nice exponent || olympiad mathematics||
7:37
Sahaj Maths Study
Рет қаралды 222
Two Pointers: Valid Palindrome
4:49
Mo Daniel
Рет қаралды 62
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН