IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 102 forks source link

Improving the Wakefield keyboard in the calculator #8882

Closed rdstern closed 4 months ago

rdstern commented 6 months ago

This is a continuation from #8878 which was becoming too long.

The Wakefield keyboard has many keys, for which it is easy to add useful tooltips. Also: a) Change date_stamp to dates (D) b) For iq, can you change the sd from 10 to 15? c) For sat change the mean to 1000, sd to 150, maximum to 1600 and minimum to 400. d) For upper, change the command to upper_factor. Keep just as upper on keyboard, but change the c to F. e) Overall change (f) to (F) and (c) to (C), and (o.f) to (O.F). f) Add buttonlower (F)on bottom row, and just after upper (F). It produces the lower_factor command. g) Correct mis-spelling of linkert7 to likert7. h) Change level key to lower, with correct coding for lower command. (It gives a single lower case letter.) (Note the very similar code for upper is already included) i) The key called died is not needed. Instead include grade_letter, with code for that command j) The key called sex is not needed. Instead have times (T)as key name, giving time-stamp as the command. k) The key called ela is not needed. Instead include minute (T) with code for that command l) There will then need to be a new issue and pull request for @N-thony to recognise H:M:S data and give the (T) for time in the data sheet.

Here goes on the tooltips!

age: Sample of ages, with default from 20 to 35 animal: Sample of animals, with default of 10 from a list of 591 animals! pet: Sample of pets. Default is dog, cat, none, bird horse, with given probabilities answer: Sample of No or Yes, with defaults of equal probability. car: Sample of cars, with datasets mtcars makes as default. children: Sample of number of children, with default 0 to 10 and defined probabilities coin: Sample giving heads or tails with default of equal probability colors: Sample by default from the 657 colours in the grDevices package. primary: Sample by default from the colours, red, green, blue, yellow, black, and white. Are those your primary colours? dates: Sample of dates with default being dates in order, by month, for the past year. death: Sample giving FALSE/TRUE with default being equally likely. died: (Key not needed. See tooltip for grade_letter below.) dice: Sample with default being equally likely from a 6 sided dice. dna: Sample with default being equally likely from Guanine, Adenine, Thymine, Cytosine dob: Sample of dates, with default being for 2 years, starting 15 years ago dummy: Sample of 0 and 1, with default equally likely. education: Sample of 12 education levels from No education to doctorate with defined probabilities employment: Sample of 5 employment levels, namely: full-time, part-time, unemployed, retired, student eye: Sample of 5 eye colours, namely: brown, blue green, hazel, grey grade level: Sample of grade levels from 1 to 12. grade: Sample from normal disribution with default mean 88 and sd 4. See also grade_letter and gpa. grade_letter: Sample from normal distribution with default mean 88 snd sd 4, with fixed translation into A+ to F gpa: Sample from normal distribution with default mean 88 and sd 4, with fixed translation into gpa of 4 to 0. group: Sample generating 2 groups, with default of random assignment to Control and Treatment, with equal probabilities. hair: Sample with default of 4 hair colours, brown, black, blonde, red, and defined probabilities height: Sample from normal distribution with default mean 69, and sd 3.75, min 1, and no specified max, rounded to no decimals. income: Sample from a gamma distribution with mean 40,000 and shape 2. (Multiply the result to change the mean) browser: Sample from "Which browser do you use?" with Chrome, IE, Firefox, Safari, Opera, Android, being the options. iq: Sample from normal diatribution with default of mean 100 and sd 15 - not 10 as provided by the package. language: Sample of world's languages with default being list of 99 languages, provided, together with their proportions lower: Sample of single letters, with default being one of a,b,c,d,e math: Sample of integers with default of 1 to 4, and probabilities based on New York grading in maths for Grades 3 to 8 children. (Called level instead if equally likely) ela (Key not needed, minute given instead.) minute: Sample of minutes as H:M:S time elements. (Tweak command to hours or seconds if needed) likert: Sample from 5-point scale, ranging from strongly agree to strongly disagree, with default of equal probabilities lorem_ipsum: Provides random gibberish text, based on Latin marital: Sample with default of 5 categories, Married, Divorced, Widowed, Separated, Never Married, equally likely. military: Sample with default of 5 categories, Army, etc, and proportions to match US military month: Sample of months with default using full names for all months and equal proportions name: Sample of names, with default from provided list of 95,025 different gender-neutral names, (so sampled without replacement) normal : Sample from normal distribution, with default being standard normal, (mean 0, sd 1) and no min or max values specified. political: Sample of political parties with default being 5 categories based on US registered voters race: Sample with default of 8 races (white, to Hawaiaan) and US proportions religion: Sample with default of 8 religions and world ratios of numbers in each sat: Sample of SAT scores. Normal distribution and default changed from package values to give mean of 1000 and maximum of 1600 sentence: Sample of sentences with default supplied list from 2012 presidential debate gender: Sample of male, female with default proportions matching gender makeup sex_inclusive: Sample of male, female, intersex, with default proportion of transgender from 2011 report. sex (Not needed) time - giving time_stamp given instead. time Sample of times of day as H:M:S time elements. smokes: Logical (TRUE/FALSE) sample with default of 18% smokers. speed: Sample from normal distribution, with default mean 55 and sd 10. state: Sample with default from the 50 US states in proportion to their 2010 populations string: Sample with default of 10 random alphanumeric charecters upper: Sample of single capital letter, with default being one of A, B, C, D, E valid: Logical (TRUE/FALSE) sample with default being equal probability. year: Sample of years with default from 1996 to current year, with equal probability

N-thony commented 6 months ago

l) There will then need to be a new issue and pull request for @N-thony to recognise H:M:S data and give the (T) for time in the data sheet. @rdstern I think we have already (T) used for hms or difftime

@rdstern I have edited this issue by mistake, can you re-write it? I was trying to comment on (T) type for hms

N-thony commented 6 months ago

l) There will then need to be a new issue and pull request for @N-thony to recognise H:M:S data and give the (T) for time in the data sheet. @rdstern I think we have already (T) used for hms or difftime

@rdstern I have edited this issue by mistake, can you re-write it? I was trying to comment on (T) type for hms

This is now resolved, I found your comment

N-thony commented 6 months ago

l) There will then need to be a new issue and pull request for @N-thony to recognise H:M:S data and give the (T) for time in the data sheet. @rdstern I think we have already (T) used for hms or difftime

rdstern commented 6 months ago

Thanks @N-thony and a small follow-up, because I am now improving the dates and times keyboard. There I found that you already have a (T) for times type. This is similar, but not quite the same as the times variables generated via Wakefield. They are not recognised by you, but do process nicely in the summarise dialog. In contrast the more official time variables are recognised by you (and resgrid), but not processed by the summarise dialog - though they are by skim?

Puzzling, and nothing to do on this puzzle just now!

N-thony commented 6 months ago

Thanks @N-thony and a small follow-up, because I am now improving the dates and times keyboard. There I found that you already have a (T) for times type. This is similar, but not quite the same as the times variables generated via Wakefield. They are not recognised by you, but do process nicely in the summarise dialog. In contrast the more official time variables are recognised by you (and resgrid), but not processed by the summarise dialog - though they are by skim?

Puzzling, and nothing to do on this puzzle just now!

Which data are you using so that I can check the class of that column?