jwiley / jwileymisc Goto Github PK
View Code? Open in Web Editor NEWR package with miscellaneous functions and utilities
R package with miscellaneous functions and utilities
Hi,
I'm trying to reproduce your code from your book:
set.seed(1234)
d2 <- data.table(x = rnorm(500))
d2[, y := ifelse(abs(x) > 1, x, -x)]
plot_grid(
testdistr(d2$x, plot = FALSE)$Density,
testdistr(d2$y, plot = FALSE, varlab = "Y")$Density,
ncol = 2)
By which I got an error:
could not find function "testdistr"
I have installed and attached the "JWileymisc" package and all the other packages.
I'm wondering whether that's because I couldn't install those updates:
Rcpp 1.0.4.6 1.0.5
processx 3.4.2 3.4.3
mnormt 2.0.0 2.0.1
nloptr 1.2.2.1 1.2.2.2
My R version is 4.0.2. Do you have any suggestions for that?
I note that JWileymisc imports the lsmeans package. However, lsmeans is about to be deprecated. The newer package emmeans replaces it and works in much the same way. There are vignettes and utilities to convert lsmeans scripts and workspaces.
I suggest that you update to emmeans as soon as possible, This is made perhaps more urgent by the fact that I received a message that lsmeans is failing some tests due to increased stringency in the tests regarding the use of Suggests packages. Until I saw that a new package imports lsmeans, I was prepared to answer that this would be a good time to formally deprecate lsmeans, rather than fix the package to pass the tests.
Correlation of perfect 1.00 is shown as .00 in SEMSummary correlation matrix plot. Colouration is correct though.
x <- data.table(a = 1:5)
x$y <- scale(6:10)
winsorizor(x$y)
Error: is.vector(d) || is.matrix(d) || is.data.frame(d) is not TRUE
Hi,
This came up during revdep checks for lavaan. In the test-distributions.R file (in tests/testthat), you now have (lines 65-67)
x <- as.data.frame(scale(mtcars[, 1:3]))
x[1, 1] <- NA
expect_warning(m <- testDistribution(x, distr = "mvnormal", use = "fiml"))
However, the last expression runs without producing a warning, and therefore, this 'test' fails, as it was expecting a warning. Could you please adapt this line, and update JWileymisc on CRAN? (It would otherwise prevent lavaan from being updated).
Thanks,
Yves.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.