[R-sig-teaching] Using R in an introductory stats course for non-stat/math majors using Lock5 text
Granaas, Michael
M|ch@e|@Gr@n@@@ @end|ng |rom u@d@edu
Tue Dec 3 18:31:28 CET 2019
Some folks at Penn State have developed a bunch of shiny apps for intro stats.
https://shinyapps.science.psu.edu/
They are not Lock5 specific, but there might be some you can use.
BOAST | Book Of Apps for Statistics Teaching<https://shinyapps.science.psu.edu/>
The apps in this collection are the work of undergraduate students majoring in Statistics at Penn State University. These students took part in the BOAST program in 2017, 2018, and 2019. (BOAST = Book Of Apps for Statistics Teaching).
shinyapps.science.psu.edu
Michael
__________________________________________________________
Michael Granaas mgranaas using usd.edu<mailto:mgranaas using usd.edu>
Department of Psychology SL: VRprofessor Resident
University of South Dakota
414 E. Clark St Phone: 605 658-3700
Vermillion, SD 57069 FAX: 605 658-3355
____________________________________________________________
My Personal Pet Project: http://maps.secondlife.com/secondlife/Chieut/20/252/88
Free classrooms for educators exploring Second Life
________________________________
From: R-sig-teaching <r-sig-teaching-bounces using r-project.org> on behalf of Christopher David Desjardins <cddesjardins using gmail.com>
Sent: Tuesday, December 3, 2019 11:07 AM
To: Randall Pruim <rpruim using calvin.edu>
Cc: r-sig-teaching using r-project.org <r-sig-teaching using r-project.org>; Stacy De Ruiter <sld33 using calvin.edu>
Subject: Re: [R-sig-teaching] Using R in an introductory stats course for non-stat/math majors using Lock5 text
Hi Randall,
Thanks for the email.
I was indeed quite happy to see your PDF on the Lock website when I began
teaching the course. The last time I looked at your PDF, it it looked like
it was mostly code to do replicate their examples in R, which while
helpful, isn't quite what I'm looking for. I'd love for them to learn R in
that manner, but I think it's slightly beyond their skill set.
Ideally here's what I'd like.
I would have the StatKey interface for bootstrapping and randomization
tests written in Shiny (or a similar toolkit with R as the backend) such
that there is a main plot that shows the bootstrap or randomization
distributions (with an option to set the seed) and two side plots to show
the original sample and the current bootstrap/randomization sample. If
possible, I'd like the "current" sample plot to be updated based on the
statistic that is hovered over in the main plot (probably this could be
done with ggplot2 and an additional package or d3.js). As far as I can tell
nothing like this exists for R or Shiny (I'd love to be wrong, though). So,
basically a one-to-one port of StatKey to R.
It would be great to see this functionality packaged in a Shiny app under a
tab called "Inference via Simulation". Another tab might be called
"Theory-based Inference" (or some better name), that provided a drop down
menu to select a test (binomial, t-test, regression, ANOVA, chi-square), an
option to calculate an arbitrary CI, a plot of the data for assumption
checking, model output printed, and a plot showing the p-value all within
that tab. This could be broken up to make it a little less busy. Finally
there might be another tab for just "Exploring the Data" both numerically
or graphically (essentially a tab for EDA). Additionally, there might be
the option to show/hide the R code. I would like students to be able to
upload the data as a CSV to the app.
I've got quite a bit of experience making Shiny apps, but don't want to
create one if someone has already made something similar to this that I
could either fork or just use.
Regarding JASP and jamovi, I found their language to be weird and creating
confidence intervals cumbersome. E.g., creating a confidence interval for a
mean, as far as I could tell, requires running a one sample t-test, making
sure H_0 the Test Value(?) is set to 0 otherwise the CI won't make sense,
clicking location parameter, and then setting the confidence interval and
hoping the students don't select effect size instead, which they do. In
JASP, you can't edit data directly but must edit it in Excel. and you can
edit directly in Rcmdr. JASP's focus on Bayesian is also confusing for my
non-Bayesian course as students select the wrong tests very easily. I do
love that they have the ability to export to LaTeX tables by default, very
nice. Also, in JASP you can't get dot plots, which I think are very helpful
for teaching. Neither software is capable of bootstrapping and
randomization tests as far as I know.
Chris
On Tue, Dec 3, 2019 at 9:53 AM Randall Pruim <rpruim using calvin.edu> wrote:
> Chris,
>
> The Lock5withR package includes all the data sets (first edition at this
> point) with more traditional R encoding than the package provided by the
> authors.
>
> Soon (I hope � it�s just pending a final review and polish), there will
> also be a companion volume as a bookdown document using R, mosaic, and
> ggformula to recreate all the examples. An older version is available as a
> PDF here:
>
> https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lock5stat.com%2Fother%2FLock5withR.pdf&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C1%7C637109896632356242&sdata=HgVlFBS2QTgfBXZyO7ae9Ctb6RSwKtv9nEiFN4u9uFk%3D&reserved=0
>
>
> For "StatCrunch in shiny", perhaps you can say a bit more about what you
> are looking for and how jamovi and JASP fall short.
>
> I hope you find a solutions that works well for you.
>
> �rjp
>
>
>
>
> On Dec 3, 2019, at 9:25 AM, Manuel Sp�nola <mspinola10 using gmail.com> wrote:
>
> Dear Chris,
>
> How about Radiant?
>
> Manuel
>
> El mar., 3 dic. 2019 a las 7:53, Christopher David Desjardins (<
> cddesjardins using gmail.com>) escribi�:
>
> Hi,
>
> I teach an introductory statistics course for non-stat/math majors that are
> primarily coming from the social sciences or business. I am using the Lock
> textbook,
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.lock5stat.com_%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3DqnNW5anVawrMQVNo45I1_4M8Tw3ljsmBYw4qusBVUxs%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632356242&sdata=llBl8sJo%2BURw%2BGN%2FzYi%2FidH9LX9HXjWNLMBxH%2B3bB88%3D&reserved=0=
> , and their software StatKey,
>
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.lock5stat.com_StatKey_%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3DN3nV9BtqXRK3zJlRPrEQoqs1wssIPU_MFhAB46Kgf8E%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=5QjLfNyQJLNAO6ybr7LXcsRjwefEb1Wi5tN1t3bxG3U%3D&reserved=0=
> . I really like the way that StatKey does
> randomization tests and bootstrapping, however, I don't like that it's not
> possible to perform theory-based tests on their website (e.g., if I wanted
> my students to perform an independent samples t-test not by hand or run a
> simple linear regression).
>
> Ideally what I was hoping for was to use R in my introductory classes but
> to have some way to make it less intimidating. I want my students to be
> able to run descriptives and create basic graphics (including dot plots),
> randomization tests, bootstrapping, and run t-tests, chi-square, ANOVA, and
> regression.
>
> I tried using RStudio, but it is still overkill for what I want my students
> to be able to do. They don't need an IDE. Randall Pruim has kindly made a
> PDF for using R with Lock5, but that is too much for what I want my
> students need. Programming isn't a principal outcome of my course.
>
> I have looked in JASP and jamovi as well, but they don't fit my needs.
>
> The closest thing I have found to what I'm looking for is Rcmdr, but it
> freezes on my Mac periodically regardless of if I use it from the Terminal,
> the R GUI, or RStudio. Has anyone else encountered that issue? Rcmdr is
> great because it's GUI driven but also pastes the R code, which is nice for
> the more advanced students in the class.
>
> What I am wondering is.
>
> 1. Is anyone using R with Lock5 and how do you use R to do it?
> 2. Does anyone know of a Shiny app that does what StatKey does AND includes
> some options for descriptives and inference similar to Rcmdr? I am
> basically looking for a Shiny StatCrunch.
>
> I have thought about creating a Shiny app to do all of this, but if someone
> already has a wonderful solution, I don't want to reinvent the wheel. I
> created something very, very basic[1] for my students just to explore the
> Lock5 data and I just might need to expand on it to get what I want.
>
> Thanks for reading my long winded email,
> Chris
>
> [1]:
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__cddesja.shinyapps.io_lock5explorer_%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3Dngdgop1Zp6IG6qxQPENeSz7lk7jGaKc413s_nBuJ7C4%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=TjPWKO8Up3Q6ifAHwj3rMkKa%2FNLWvFJP5u17Ew1sqYg%3D&reserved=0=
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-teaching using r-project.org mailing list
>
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dteaching%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3DFBH1JXCQ8weBt8iLEG2ak-fyZrbrbhQIUcUNrVdVYP8%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=vSGCY52JLNFec5qk7zLGFrQbTFkfKW4VxH9C44Nwqo0%3D&reserved=0=
>
>
>
> --
> *Manuel Sp�nola, Ph.D.*
> Instituto Internacional en Conservaci�n y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola using una.cr <mspinola using una.ac.cr>
> mspinola10 using gmail.com
> Tel�fono: (506) 8706 - 4662
> Personal website: Lobito de r�o <
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__sites.google.com_site_lobitoderio_%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3DVkPHGc5PzRnq4g6kLOx9L_P-9OFvx_cw-CY3jWCceuM%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=jqgVzQvXWao1fe4vtwf3LTXNFZCFifVZJhQNQhGhBkU%3D&reserved=0=
> >
> Institutional website: ICOMVIS <
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.icomvis.una.ac.cr_%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3Dpc08BWmjY5nHD_C3vT6RKjEKnpX5-BOMoK22JYTX9AA%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=gaTJDPfQqX8pe6dGusg%2BJzkwjXCoXVbTSyHYa3vvzyo%3D&reserved=0=
> >
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-teaching using r-project.org mailing list
>
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dteaching%26d%3DDwIFaQ%26c%3D4rZ6NPIETe-LE5i2KBR4rw%26r%3DS6U-baLhvGcJ7iUQX_KZ6K2om1TTOeUI_-mjRpTrm00%26m%3DrvRMe6UbaU3kDRIQHpLP_3zbje0eW1UBt3Fp6o9KSec%26s%3DFBH1JXCQ8weBt8iLEG2ak-fyZrbrbhQIUcUNrVdVYP8%26e&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C0%7C637109896632366242&sdata=vSGCY52JLNFec5qk7zLGFrQbTFkfKW4VxH9C44Nwqo0%3D&reserved=0=
>
>
>
[[alternative HTML version deleted]]
_______________________________________________
R-sig-teaching using r-project.org mailing list
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-teaching&data=02%7C01%7Cmichael.granaas%40usd.edu%7C206c405765e3484c480408d778134dcf%7C9c36a7d0bf7b49919b78be91a52f0226%7C0%7C1%7C637109896632366242&sdata=6W0EDFMJUh9elemv2EliCUHKs7mbG3tKBLxhyMuis%2Fo%3D&reserved=0
[[alternative HTML version deleted]]
More information about the R-sig-teaching
mailing list