Re: [R] Regarding R doubt

2019-06-19 Thread Richard O'Keefe
And PL.rasch has what class? The manual for the 'ltm' package says that 'summary' "[s]ummarizes the fit of either grm, ltm, rasch or tpm objects." Download the sources from https://cran.r-project.org/src/contrib/ltm_1.1-1.tar.gz Unpack the sources. Look at ltm/R/summary.rasch.R as that *computes*

Re: [R] Plot historical data

2019-06-19 Thread Abby Spurdle
I'm not sure I understand exactly what you mean. > I want to EXTRACT FOR ONE HAND A TABLE WITH MEAN BY CENTER, STD DESV. Do you want a table giving the mean and sd of Cost, grouped by Center? > I want a plot or smooth plot replicating a gauss line distribution by > center. Do you want one plot

[R] Colour for unique label with ggplot

2019-06-19 Thread phil
# RStudio version 1.1.463 # sessionInfo() # R version 3.5.1 (2018-07-02) # Platform: x86_64-apple-darwin15.6.0 (64-bit) # Running under: macOS 10.14.5 # I am constructing a bar chart using ggplot, as in the example below. # I want to highlight "Series 2" by colouring the bar red, # with the othe

Re: [R] Separating Date and Time

2019-06-19 Thread Jim Lemon
Hi Jeff, Well, the output of "format" is character strings, so that is what you are missing. I assume that you want to get two numeric values for each date. date1<-"06/20/2019 09:07" > as.POSIXct(date1,format="%m/%d/%Y %H:%M") [1] "2019-06-20 09:07:00 AEST" day<-as.numeric(as.POSIXct(date1,format

[R] Separating Date and Time

2019-06-19 Thread reichmanj
R-Help I'm using the following code to deparate the date and time components from a date_time varaible as follows: dt1$date <- format(as.POSIXct(dt1$date_time, format = "%m/%d/%Y %H:%M"), "%Y-%m-%d") dt1$time <- format(as.POSIXct(dt1$date_time, format = "%m/%d/%Y %H:%M"), "%H:%M:%S") B

Re: [R] Regarding R doubt

2019-06-19 Thread Richard O'Keefe
You did not say what your doubt about R was. PL2.rasch has some class. > class(PL2.rasch) [1] 'Grofnigtz' # or whatever The summary function is really just a dispatcher. > summary.Grofnigtz ... a listing comes out here ... Or you could look in the source code of whatever package you are usin.

[R] Plot historical data

2019-06-19 Thread Pedro páramo
Hi I am re discovering R and I need a help to make this plot, please let me know if you can help me. I want to EXTRACT FOR ONE HAND A TABLE WITH MEAN BY CENTER, STD DESV. BUT my doubt is to plot by center in the same plot the empirical distribution of cost by center I want a plot or smooth plot r

Re: [R] How to select max data according to week?

2019-06-19 Thread Marc Schwartz via R-help
Hi All, Is there a reason that the following was not considered? > DF Date O3_Conc 1 2000-01-01 0.033 2 2000-01-02 0.023 3 2000-01-03 0.025 4 2000-01-04 0.041 5 2000-01-05 0.063 6 2000-01-06 0.028 7 2000-01-07 0.068 8 2000-01-08 0.048 9 2000-01-09 0.037 10 2000

Re: [R] How to select max data according to week?

2019-06-19 Thread Eric Berger
I just realized that my method as written only works if the entire date range is within a single calendar year. Here is a revised version that should handle the general case. In this version I assume that the conversion from the original numbers to dates has already been done e.g. it can be done u

Re: [R] How to select max data according to week?

2019-06-19 Thread Eric Berger
Hi Bert, I agree that our interpretation is slightly different, which is why I wrote: "If one can take the actual week of the year as an acceptable definition of week, then here's my approach." Regards, Eric On Wed, Jun 19, 2019 at 5:04 PM Bert Gunter wrote: > Eric: > > I believe you're doing s

Re: [R] How to select max data according to week?

2019-06-19 Thread Bert Gunter
Eric: I believe you're doing something different than I did. I broke up each month into biweekly periods, 2+ per month. You seem to be grouping the overall entire period into biweekly intervals -- apologies if I'm wrong, but if I understood correctly, that's not the same thing. I do not know which

Re: [R] Regarding R doubt on rasch model

2019-06-19 Thread Rui Barradas
Hello, There are many packages that implement rasch models but I could only find 2 with summary methods, package pairwise and package ltm See [1] and [2]. To see the source code at an R prompt print the function code with summary. where is the output of class(PL2.rasch) R is open sour

Re: [R] Regarding R doubt on rasch model

2019-06-19 Thread Doran, Harold
You need to say what function in R is creating this. However, how are you getting a discrimination parameter for Rasch? -Original Message- From: R-help On Behalf Of shreepad khandve Sent: Wednesday, June 19, 2019 2:49 AM To: r-help@r-project.org Subject: [R] Regarding R doubt on rasch mo

Re: [R] Regarding R doubt

2019-06-19 Thread Eric Berger
Hi Shreepad, >From the command 'summary(PL2.rasch)' it seems that PL2.rasch is an object. You don't provide enough details on how this object was created. What python or R packages? And what functions from those packages were used? Ideally you would provide a reproducible example, but even without

[R] Regarding R doubt on rasch model

2019-06-19 Thread shreepad khandve
Hello Team, I hope you are doing well. I have one doubt about backend functioning of R command. Currently I'm working on IRT analysis in python but this function is implemented in R and in R they have direct rasch model library but no such library in the Python. So i wanted to know that is there a

[R] Regarding R doubt

2019-06-19 Thread shr...@outlook.com
Hello Team, I hope you are doing well. I have one doubt about backend functioning of R command. Currently I'm working on IRT analysis in python but this function is implemented in R and in R they have direct rasch model library but no such library in the Python. So I wanted to know that is there

Re: [R] How to select max data according to week?

2019-06-19 Thread Eric Berger
Hi Siti, I didn't test Bert's code but I assume it's fine. :-) I would take a different approach than Bert. I prefer to use a package such as lubridate to handle the date wrangling, and a package such as dplyr to handle the grouping and max extraction. It may be overkill for this problem, but these