hlennon / lctmtools Goto Github PK
View Code? Open in Web Editor NEWLatent Class Trajectory Models: An R Package
Latent Class Trajectory Models: An R Package
Hello Hannah
I hope download your data shown in the website, but it failed. May you upload the data you used in your paper again? Many thanks
Dear Hannah,
I'm having some trouble installing LCTMtools to R. I've used the code:
library(devtools)
devtools::install_github("hlennon/LCTMtools")
And the installation asks me whether I want to update a load of packages. I updated all these manually in the end, but one that still comes up on the list is "backports" (even though I tried installing/updating this package manually). When I choose to update this one through the LCTMtools installation, I get to this error:
Error: Failed to install 'LCTMtools' from GitHub:
(converted from warning) cannot remove prior installation of package ‘backports’
If I choose to update no packages, I get to the error:
Error: Failed to install 'LCTMtools' from GitHub:
(converted from warning) installation of package ‘C:/Users/myusername/AppData/Local/Temp/RtmpmsTViI/file26a415ca7608/LCTMtools_0.1.3.tar.gz’ had non-zero exit
status
I wonder if you know what might be causing these errors?
Best wishes,
James
Hello Hannah,
I'm having trouble to install LCTMtools to R. I used the direction and code in the LCTM vignette
install.packages (devtools)
library(devtools)
devtools::install_github("hlennon/LCTMtools")
Please advise. Thanks
Shaminie
Dear Hannah,
I'm having a problem with the function 'residualplot_step1'. When I run the examples:
library(ggplot2)
data(bmi_long, package = "LCTMtools")
require(lcmm)
model2class <- lcmm::hlme(
fixed = bmi ~ age,
mixture = ~age,
random = ~ -1,
nwg = TRUE, ng = 2, subject = "id",
data = data.frame(bmi_long[1:500, ])
)
residualplot_step1(model2class,
nameofoutcome = "bmi",
nameofage = "age",
data = bmi_long,
)
dplyr::left_join()
:...
must be empty.Backtrace:
▆
I have updated the 'dplyr' package and it still shows this error. My R version info is:
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
I wonder if you know what might be causing these errors?
Best wishes,
Coco
Dear Dr Hannah Lennon,
When I used the residualplot_step1
function, only a residual plot was presented. In general, the residual plot for the highest label component is shown.
Dear hlennon!
hello, when I use the function "residualplot_step1", and run follow codes:
set.seed(100)
library(lcmm)
model2classes <- lcmm::hlme(fixed = bmi ~ age + I(age^2),
mixture= ~ age,
random = ~ age,
ng = 2,
nwg = TRUE,
subject = "id",
data = data.frame(bmi_long[1:500, ]) )
residualplot_step1(model2classes,
The warning in screen is:
Joining, by = "id"
Joining, by = c("id", "bmi")
Error in aes(x = get(nameofage), y = Residuals, group = class) :
没有"aes"这个函数
and here is my R version information:
R.version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.5
year 2021
month 03
day 31
svn rev 80133
language R
version.string R version 4.0.5 (2021-03-31)
nickname Shake and Throw
Thanks!
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.