Questions tagged [s]

S is a statistical programming language

S is a statistical programming language. The aim of the language, as expressed by its creators, is "to turn ideas into software, quickly and faithfully."

The two modern implementations of S are and .

35 questions
1
vote
1 answer

Design matrix for MLM from library(lme4) with fixed and random effects

Context of application I have a model with random slopes and intercepts. There are numerous levels of the random effects. The new data (to be predicted) may or may not have all of these levels. To make this more concrete, I am working with music…
alexwhitworth
  • 4,839
  • 5
  • 32
  • 59
0
votes
1 answer

Selenium tests work perfectly on my local but fail on virtual machine

I have a suite of automated tests made with Selenium and Python with 359 tests. When I run them on my computer, they always passs, but in my company, they set up a virtual machine and when they run it there, there are always about 15/25 tests that…
0
votes
0 answers

Error connecting Node.js + MongoDB application within Docker containers

Error connecting Node.js + MongoDB application within Docker containers I have a Node.js + MongoDB application that works perfectly without Docker. However, when I containerize it using Docker Compose, I encounter an error related to the…
MPearson
  • 1
  • 1
0
votes
0 answers

How to claim unclaimed memory for Intel Comet Lake PCH Shared SRAM?

I have recently come across a hardware component on my computer system called "Comet Lake PCH Shared SRAM" from Intel Corporation. Upon checking the system information, I found the following details about the SRAM module: memory…
0
votes
1 answer

Express-session: not resetting cookie expiration on each request

I'm using express-session to implement authentication in my web application. However, I'm encountering an issue where the cookie expiration time is not getting reset on each request. Below is the code I'm using: main.ts file: import { NestFactory }…
hunglt.ee
  • 3
  • 4
0
votes
0 answers

Buffer Overflow with structures - C

I am a beginner with programming and I have no idea how to fix my code. I want every students[i] to have the overall variable preset with the characters "none". Every way I have tried to write my code for this has not worked and I get Buffer…
Kai
  • 1
  • 2
0
votes
0 answers

How to print out the parameters change in nlsLM function in R?

I want to see how the parameters change with the change of MSE. I want to print all the values of the parameters and the MSE associated with it?
ryan
  • 1
  • 1
0
votes
1 answer

Nonlinear regression in R / S

I have a R / S / Nonlinear regression related issue and i am not a R programmer, so i kinda need help. I have two arrays - tt and td. I need to find the parameters a,b and c so the sum of least squares is minimal for a non linear function: td / tt…
Nemanja
  • 1,505
  • 12
  • 24
0
votes
1 answer

How to use download button in shiny and save results in various formats (csv, texte, pdf, spss...)?

I am currently working on shiny app. And I would like the app allows to download (save) results in various formats : csv, texte, pdf, xlsx, SPSS, SAS and Stata. Here is my UI : # Define UI ui <- fluidPage( #Navbar structure for UI …
Miles
  • 69
  • 8
0
votes
1 answer

How to visualize natural cubic spline (ns) in the GAM

> # simulate some data... > dat <- gamSim(1,n=400,dist="normal",scale=2) > # fit model&plot > library(mgcv) > library(splines) > b0 <- gam(y~s(x1),data=dat) > plot(b0) Following the code above, I can get a plot like this: enter image description…
aisiqisdu
  • 1
  • 4
0
votes
2 answers

Writing a loop in R

I have written a loop in R. The code is expected to go through a list of variables defined in a list and then for each of the variables perform a function. Problem 1 - I cannot loop through the list of variables Problem 2 - I need to insert each…
ThePatBan
  • 107
  • 2
  • 15
0
votes
0 answers

R drop columns when reading from CSV before the column type is identified

I have a fairly large data set and I would like to drop some columns before the column type / class is deduced.. How do I do this. I tried this Initial <- read.csv("file.csv",header = T,fill=T,nrows=100) Classes <-…
CodeGeek123
  • 4,341
  • 8
  • 50
  • 79
0
votes
1 answer

how to generate elements not included in my sample

This is a bit trivial but how can i generate the set of numbers in x not included in the sample. x=rnorm(6,0,1) k=sample(x,3)
john
  • 35
  • 4
0
votes
2 answers

Edit default summary function in R gives error for multiple variables

I'm expanding the default summary() function because I need more percentiles. It seems to work fine for one variable, but if I add a dataframe containing multiple variables I get strange values whereas with the default summary() it works. Even if I…
Tim_Utrecht
  • 1,459
  • 6
  • 24
  • 44
0
votes
1 answer

How to avoid multiple loops with multiple variables in R

I have a two datasets stored in tables, one is a set of [a, b] and another is [x, Sx, y, Sy, rho]. I have a probability function f that requires (a, b, x, Sx, y, Sy, rho). In the end I want to find the sum of the probability results over all [x,…
Jesse
  • 244
  • 2
  • 15