Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

I am going through an RStudio tutorial about the Pearson & Spearman Correlation Matrices in R, available here. The first sample code, to be used in RStudio, reads a .csv file (available here) and ...
bigpython's user avatar
1 vote
0 answers
26 views

I'm working with the following dataset and wish to produce a ggpattern bar plot. I will attach a drawing of what would be my desired output since it might be too complex/wordy to explain. rpe1_h9 <-...
Matteo's user avatar
  • 527
-2 votes
1 answer
70 views

I have this dataset: library(dplyr) library(tidyr) library(lubridate) combined <- structure(list(country = c("Canada", "France", "Japan", "Brazil", "...
stats_noob's user avatar
  • 6,861
0 votes
0 answers
26 views

I attempted to execute code entitled "Multilayer community detection" using the muxViz library (https://github.com/manlius/muxViz) published on https://manlius.github.io/muxViz/articles/...
tomek's user avatar
  • 98
0 votes
0 answers
47 views

This is the code: library(ggplot2) mortality_incidence_data <- read.csv("Report Data Death.csv") mortality_incidence_data$year <- factor(mortality_incidence_data$year,levels = c( &...
Ryan Rajput's user avatar
5 votes
2 answers
115 views

R version 4.5.0 (2025-04-11 ucrt) RGui console in Windows 11. I happened to come across the following problem. Consider the global assignment statement: xxx <<- c(1,2) xxx[1:2] ls() This gives [...
clp's user avatar
  • 1,650
2 votes
1 answer
49 views

I use the tidyverse suite to estimate 6 linear models as a function of empirical subgroups and different functional forms library(tidyverse) library(magrittr) library(marginaleffects) library(...
tomw's user avatar
  • 3,271
Advice
0 votes
3 replies
40 views

I’m trying to detect anomalies in a dataset using Z-scores based on the logged index change of a value between two time periods: VAL_t0 and VAL_t1. The issue: The variance of Z-scores decreases as ...
Aaron Walton's user avatar
0 votes
0 answers
42 views

I have patients divided into two groups: treatment and placebo. Each subject is measured at two time points: before and after. I am performing an ANOVA using the afex::aov_car() function with the ...
sitems's user avatar
  • 798
0 votes
1 answer
48 views

In my R package roxygen2 documentation with markdown enabled (I have Roxygen: list(markdown = TRUE) in my DESCRIPTION file), I have the following code: #' \tabular{ll}{ #' \code{~.} \tab ...
Tomas's user avatar
  • 60.2k
-1 votes
0 answers
32 views

All three of the software uses one of two estimating methods by default: Maximum Likelihood Estimation: R Pseudo-Likelihood Estimation: JMP and SAS SAS can be specified to fit with Maximum ...
creutzml's user avatar
  • 412
Advice
1 vote
4 replies
74 views

By default, when a result of integer operation would not fit into R's 32bit integer type, we get a warning and the result is NA. E.g.: 1920912463L # 1920912463 (valid integer) 1920912463L + ...
Martin Modrák's user avatar
-1 votes
1 answer
48 views

I am creating a chart with two different geoms and would like to include them on separate rows (one row per geom) in a legend at the top of the chart. For example: ggplot(data = iris) + geom_point(...
Modern_ibex's user avatar
0 votes
0 answers
52 views

I am using the ergm package and I want to have an edgecov() variable which has missing data. I am doing network analysis of a unit with 48 people. However, I only have a response rate of 74%. This ...
Laura P.'s user avatar
2 votes
1 answer
67 views

I have an object that could be either a "name" or a "call", and I want it to end up as a "call". By a "name" object, I mean like something created by bquote(), ...
Dagremu's user avatar
  • 511

15 30 50 per page
1
2 3 4 5
34063