[R] Repository of Examples and Problems from Lock5 textbook

2025-06-01 Thread Kevin Zembower via R-help
I've completed my Basic Statistics course, and am pleased overall with the experience. In addition to earning a grade of 105.82% (smart-ass comment from wife: "How is that even statistically possible?"), I feel as if I have a comprehensive understanding of not only the procedures and formulas of ba

Re: [R] OT: A philosophical question about statistics

2025-05-06 Thread Kevin Zembower via R-help
didn't write to complain. I promise to limit off-topic questions in the future. -Kevin On Mon, 2025-05-05 at 15:17 +0000, Kevin Zembower wrote: > I marked this posting as Off Topic because it doesn’t specifically > apply to R and Statistics, but is rather a general question about >

Re: [R] OT: A philosophical question about statistics

2025-05-06 Thread Kevin Zembower via R-help
TIm, thanks for replying to my questions. I really value your insights in areas of statistics (small sample sizes, agricultural statistics) that are unique. The use of one method or technique to check the other was not one I had thought of. The idea that if one technique, correctly applied, could

Re: [R] OT: A philosophical question about statistics

2025-05-06 Thread Kevin Zembower via R-help
Gregg, thanks for your reply to my questions. I was looking for exactly the type of information you included, especially on the strengths and weaknesses of each approach. I was very pleased with the intuitive aspects of the simulation approach in my course. This was the part that was missing from

Re: [R] OT: A philosophical question about statistics

2025-05-06 Thread Kevin Zembower via R-help
Bert, thanks so much for your response. I woke up early this morning and couldn't go back to sleep, formulating a response. I hope I do it justice. See in-line below. On Mon, 2025-05-05 at 20:09 +0100, Bert Gunter wrote: > 1. What you have been taught is mostly useless for addressing "real" > stat

[R] OT: A philosophical question about statistics

2025-05-05 Thread Kevin Zembower via R-help
I marked this posting as Off Topic because it doesn’t specifically apply to R and Statistics, but is rather a general question about statistics and the teaching of statistics. If this is annoying to you, I apologize. As I wrap up my work in my beginning statistics course, I’d like to ask a philoso

Re: [R] Setting up hypothesis tests with the infer library?

2025-04-05 Thread Kevin Zembower via R-help
all been simulations, bootstraps, randomized distributions, etc. Thank you, again, Rui and Michael, for your help for me. -Kevin On Sat, 2025-03-29 at 16:42 +, Rui Barradas wrote: > Às 16:09 de 29/03/2025, Kevin Zembower via R-help escreveu: > > Hello, all, > > > > We'r

Re: [R] Setting up hypothesis tests with the infer library?

2025-03-31 Thread Kevin Zembower via R-help
Neal, thanks so much for precisely focusing on the exact question I asked. While I can follow along with the workings of your solution, I never would have thought of it myself. I'm glad to learn of all the other solutions offered, too. They broadened my understanding of what I was doing in my stat

[R] Setting up hypothesis tests with the infer library?

2025-03-29 Thread Kevin Zembower via R-help
Hello, all, We're now starting to cover hypothesis tests in my Stats 101 course. As usual in courses using the Lock5 textbook, 3rd ed., the homework answers are calculated using their StatKey application. In addition (and for no extra credit), I'm trying to solve the problems using R. In the case

[R] Why I wrote my MWE the way I did. [WAS:] Re: What don't I understand about sample()?

2025-03-17 Thread Kevin Zembower via R-help
; tidyverse functionality, switching to use this by default may be > > wise. > > > > My philosophy is to keep thing as simple as reasonable but no > > simpler than reasonable. In programming languages, it is to use a > > simple consistent set of tools that gets me what I wa

Re: [R] What don't I understand about sample()?

2025-03-15 Thread Kevin Zembower via R-help
Hi, Richard, thanks for replying. I should have mentioned the third edition, which we're using. The data file didn't change between the second and third editions, and the data on Body Mass Gain was the same as in the first edition, although the first edition data file contained additional variables

[R] [SPAM | WERBUNG] Re: What don't I understand about sample()?

2025-03-15 Thread Kevin Zembower via R-help
Avi, hi, thanks for your reply. I was vaguely aware of the '...' construct, but hadn't ever worked out how to actually use it. Thank you so much for teaching me that. I agree that I should use it in my function. Yeah, I just used the parentheses around some of my assignments to avoid the trouble o

Re: [R] What don't I understand about sample()?

2025-03-14 Thread Kevin Zembower via R-help
t;- apply(random.samples, 1, compute.diff.means)) === I think both of these methods give me the data I'm trying for. Any suggestions on my R coding techniques are welcome. Thank you all, again, for taking the time and effort to help me. Your help is greatly appreciated.

[R] What don't I understand about sample()?

2025-03-13 Thread Kevin Zembower via R-help
Hello, all, I'm learning to do randomized distributions in my Stats 101 class*. I thought I could do it with a call to sample() inside a matrix(), like: > matrix(sample(1:10, replace=TRUE), 5, 10, byrow=TRUE) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,]82318

Re: [R] Advice on starting to analyze smokestack emissions?

2023-12-16 Thread Kevin Zembower via R-help
n email address. Thanks again, Karl, for suggesting this. -Kevin On Fri, 2023-12-15 at 08:29 -0500, Kevin Zembower wrote: > Bert, Tim, Karl and Richard, thank you all for your suggestions and > help. > > I will try the R-sig-ecology list. > > Karl, I wasn't aware of the RA

Re: [R] Advice on starting to analyze smokestack emissions?

2023-12-15 Thread Kevin Zembower via R-help
Bert, Tim, Karl and Richard, thank you all for your suggestions and help. I will try the R-sig-ecology list. Karl, I wasn't aware of the RAQSAPI package, but it looked promising. However, when I went to the source of the data it uses, the United States Environmental Protection Agency’s (US EPA) A

[R] Advice on starting to analyze smokestack emissions?

2023-12-12 Thread Kevin Zembower via R-help
Hello, all, [Originally sent to r-sig-geo list, with no response. Cross-posting here, in the hope of a wider audience. Anyone with any experience in this topic? Thanks.] I'm trying to get started analyzing the concentrations of smokestack emissions. I don't have any professional background or tra

Re: [R] Missing shapes in legend with scale_shape_manual

2023-10-31 Thread Kevin Zembower via R-help
t;   scale_shape_manual(name = "Conditions", > labels = c("Missed meds", >     "Missed exercise"), > values = c(20, 4) >   ) > > > Note that this method then gets ve

[R] Missing shapes in legend with scale_shape_manual

2023-10-30 Thread Kevin Zembower via R-help
Hello, I'm trying to plot a graph of blood glucose versus date. I also record conditions, such as missing the previous night's medications, and missing exercise on the previous day. My data looks like: > b2[68:74,] # A tibble: 7 × 5 Date Time bg missed_meds no_exercise

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
meteorological metrics. >    >    Another option would be to use larger cities (Duluth, > International Falls, Thunder Bay) and take a metal average. There is > a lake effect for two of these more than the other. >    >    All good? > Tim > > -Original Message- > F

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
depends on how far away the trip will be. > > -----Original Message- > From: Kevin Zembower > Sent: Wednesday, September 13, 2023 1:22 PM > To: Richard O'Keefe ; Ebert,Timothy Aaron > > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
/09/2023, Kevin Zembower via R-help escreveu: > > Hello, > > > > I'm trying to calculate the mean temperature max from a file of > > climate > > date, and plot it over a range of days in the year. I've downloaded > > the > > data, and cleaned

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
ludes both min and max > > thresholds. > > > > All I have done is provide an example where min and max could have > > a real world use. I use max(temp) over some interval and then > > update an accumulated thermal units variable based on the outcome. > > That detai

[R] Help with plotting and date-times for climate data

2023-09-12 Thread Kevin Zembower via R-help
Hello, I'm trying to calculate the mean temperature max from a file of climate date, and plot it over a range of days in the year. I've downloaded the data, and cleaned it up the way I think it should be. However, when I plot it, the geom_smooth line doesn't show up. I think that's because my x ax

[R] Suggestions for hierarchical row names?

2023-07-31 Thread Kevin Zembower via R-help
Hello, On 28 June I asked a question with the subject "Processing a hierarchical string name". Folks here were very generous in helping me, and I'm very pleased with the solutions. Now, I'm asking about a related topic, and I have both technical and stylistic questions. I'm still working on my

Re: [R] Processing a hierarchical string name

2023-06-29 Thread Kevin Zembower via R-help
on of one race" and "Population of two or more races". Thank you both for helping me with this specific problem and for increasing my knowledge and abilities with R. -Kevin On 6/28/23 16:56, Ivan Krylov wrote: > On Wed, 28 Jun 2023 20:29:23 + > Kevin Zembower via R-help

[R] Processing a hierarchical string name

2023-06-28 Thread Kevin Zembower via R-help
Hello, all I'm trying to process the names of the variables in the US Census database, that I'm retrieving with tidycensus. My end goal is to produce nicely formatted tables with natural labels. The labels as downloaded from the US Census look like this: ## Get the P1 table for block group 3 i

[R] Rmarkdown code rendering as LaTeX, not executing?

2023-06-13 Thread Kevin Zembower via R-help
ed as an opening double-quote, followed by an opening single quote. Here's my test file: --- title: "An analysis of US 2020 Census Data for the Radnor-Winston neighborhood" author: "E. Kevin Zembower" date: "29

[R] Recommended ways to draw US Census map on Open Street Map base map?

2023-06-06 Thread Kevin Zembower via R-help
Hello, all, I asked a version of this question on the R-sig-geo list, but didn't get any response. I'm asking here in the hopes of a wider audience. I'm trying to draw US Census map data, fetched with tigris, on top of a base map fetched by the package OpenStreetMap. I'm hoping for the most st

Re: [R] [External Email] Newbie: Controlling legends in graphs

2023-05-16 Thread Kevin Zembower via R-help
See below. On 5/16/23 10:52, Christopher Ryan wrote: > I"m more of a lattice guy than a ggplot guy, but perhaps this is part of > the problem: > > . >      geom_point(aes(y = m_K, color = "red")) +  # >> you've > associated "K" with the color red >      geom_smooth(aes(

Re: [R] Newbie: Drawing fitted lines on subset of data

2023-05-16 Thread Kevin Zembower via R-help
Yep, that did it. I didn't know that you could have pipelines within pipelines. Thanks, again, for all your help. -Kevin On 5/16/23 11:44, Rui Barradas wrote: > Às 15:29 de 16/05/2023, Kevin Zembower via R-help escreveu: >> Hello, >> >> I's still working with my

[R] Newbie: Drawing fitted lines on subset of data

2023-05-16 Thread Kevin Zembower via R-help
Hello, I's still working with my tsibble of weight data for the last 20 years. In addition to drawing an overall trend line, using lm, for the whole data set, I'd like to draw short lines that would recompute lm and draw it, say, just for the years from 2010:2015. Here's a short example that I

Re: [R] Newbie: Controlling legends in graphs

2023-05-16 Thread Kevin Zembower via R-help
Rui, thanks so much for your help. Your explanation and example were clear and concise. Thanks for taking the time and effort to help me. -Kevin On 5/12/23 16:06, Rui Barradas wrote: > Às 14:24 de 12/05/2023, Kevin Zembower via R-help escreveu: >> Hello, I'm trying to create a lin

[R] Newbie: Controlling legends in graphs

2023-05-12 Thread Kevin Zembower via R-help
Hello, I'm trying to create a line graph with a legend, but have no success controlling the legend. Since nothing I've tried seems to work, I must be doing something systematically wrong. Can anyone point this out to me? Here's my data: > weights # A tibble: 1,246 × 3 Date J

[R] data.frame with variable-length list

2013-03-08 Thread Kevin Zembower
Hello, I'm trying to create a data frame with three columns, one of which is a variable-length list. I tried: df <- data.frame(name = c("a", "b", "c"), type=c(1, 2, 3), rtn = c(list(1,2,3), list(4, 5,6), list(7,8,9, 10) ) ) This would be useful,