Re: [R] R coding errors

2023-09-08 Thread John Kane
Can you supply us with some sample data? A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where *mydata* is your data. Copy the output and paste it here. On F

Re: [R] unable to load latticeExtra in AWS R

2023-09-08 Thread Ivan Krylov
8 сентября 2023 г. 22:25:10 UTC, Naresh Gurbuxani пишет: >> library(latticeExtra) > Error: package or namespace load failed for ‘latticeExtra’ in dyn.load(file, > DLLpath = DLLpath, ...): > unable to load shared object > '/home/ec2-user/SageMaker/R-library/jpeg/libs/jpeg.so': > libjpeg.so.8:

[R] unable to load latticeExtra in AWS R

2023-09-08 Thread Naresh Gurbuxani
In my AWS Sagemaker account latticeExtra does not load. It has worked in the past. How can this problem be fixed? Thanks, Naresh Sent from my iPhone Begin forwarded message: Lattice package is preinstalled. I installed latticeExtra. > .libPaths() [1] "/home/ec2-user/SageMaker/R-library" [

Re: [R] how to get paste() to output \% so LaTeX will interpret it as a percent sign rather than a comment symbol

2023-09-08 Thread Hadley Wickham
You're getting confused between the contents of the string and the printed representation of the string. There's a little bit about this in R4DS: https://r4ds.hadley.nz/strings#escapes (or in brief, do writeLines(trailing.7.message)) Hadley On Fri, Sep 8, 2023 at 7:23 AM Christopher Ryan via R-h

[R] R coding errors

2023-09-08 Thread PROFESOR MADYA DR NORHAYATI BAHARUN
Hi Sir, Could you please help me on the following errors: STEPS TO MIX IRT_RMT APPROACH IN R #1- Load required libraries library(eRm) library(ltm) library(mirt) library(psych) HT <- read.csv("C:/Users/User/Dropbox/Analysis R_2023/HT2.csv") str(HT) #2- Load or create your data matrix response

[R] how to get paste() to output \% so LaTeX will interpret it as a percent sign rather than a comment symbol

2023-09-08 Thread Christopher Ryan via R-help
I'm using a .Rnw --> Sweave --> pdflatex workflow on Windows 10, with emacs 26.3 and ESS (not sure which version.) I have this code: n.tests.7 <- 3 ## for example trailing.7.pos.percent <- 12 ## for example trailing.7.message <- ifelse( n.tests.7 > 0, paste("In the past seven day

Re: [R] prop.trend.test

2023-09-08 Thread Ebert,Timothy Aaron
Say I have one machine that produces 15 million widgets per day. Every day a few widgets are defective. Is the proportion increasing? The data analyst needs to know what time span is of interest. I assume that there is some day-to-day variability. Is today's defect rate greater or less than yest

Re: [R] prop.trend.test

2023-09-08 Thread Rui Barradas
Às 10:06 de 08/09/2023, peter dalgaard escreveu: Yes, this was written a bit bone-headed (as I am allowed to say...) If you look at the code, you will see inside: a <- anova(lm(freq ~ score, data = list(freq = x/n, score = as.vector(score)), weights = w)) and the lm() inside sho

Re: [R] prop.trend.test

2023-09-08 Thread peter dalgaard
Yes, this was written a bit bone-headed (as I am allowed to say...) If you look at the code, you will see inside: a <- anova(lm(freq ~ score, data = list(freq = x/n, score = as.vector(score)), weights = w)) and the lm() inside should give you the direction via the sign of the regr