library(boot) boot_function <- function(data, indices, formula){ d <- data[indices, ] obj <- lm(formula, d) coefs <- summary(obj)$coefficient
I'm using the MixSIAR package in R to estimation proportional water source use (groundwater versus soil moisture) by different tree species based on stable oxyg
I am reading https://cran.r-project.org/web/packages/rsimsum/vignettes/A-introduction.html and trying to do a simulation of a hypothesis test (using the Wald te
I have a dataset called verts imported from Excel with a column called Date that contains dates in this format: m/d/yyyy. I'm trying to extract the year from th
I've been learning to do Optimal Full Matching. I was wondering how the treatment column is created. Is there a way to identify which ones are in the treatment
The regularized incomplete beta function I(x,a,b) is the CDF for a random variable distributed Beta(a,b). I have a problem that requires compu
I tried to install rattle and RGtk2. I used install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos
To view a pdf file and my shiny app, I use the following code on the server side, which everyone recommends: output$pdf_info_exper <- renderUI({ se
I am currently preparing data to conduct a second order and third order habitat selection analysis. For the second-order (use/available), I am looking at the me
I have a dataframe looks like below: Place Time1 Time2 Time3 Time4 Time5 Time6 Time7 Time8 Time9 ... CA 0.2 0.3 0.1 0.
I'm trying to use R and the R package rjdbc to connect to an Oracle database. Unfortunately, due to my company's strict IT department, every step of the proces
enter image description hereIm trying to stack the above given formula to use on my code, but i keep getting this error Error: Must request at least one colour
i've got this set of code here in R that seperates a dataframe containing tweets by their day posted. I'm finding a weird interaction where, if i was to run the
I am a beginner with R. I have the next data: 5 cars drive from A to B, the total distance is 100 km. The speed of these cars is measured during different momen
How can I extract all text after first space in a column where data is something like this structure(list(value = c("1.1.a Blue sea", "1.2.a Red ball")), row.na
Looking for a function in R to convert dates into week numbers (of year) I went for week from package data.table. However, I observed some strange behaviour: &
In my pilot study I applied a between-subjects design. For the follow-up study, a within-subjects manipulation seems more feasable. I want to conduct power anal
I am trying to code R in order to obtain growth rate for COVID-19. The equation can be found on the inserted image where i(t) is the number of infected individu
I have a large data frame in a panel structure (201720 rows; 3 columns) which looks as follows: Name <- c("A", "A", "A", "B", "B", "B") Inception <- c(as
I'm a newbie in r, recently I'm doing a joint modeling of longitudinal and time-to-event data, following the example in the R package "joineR", I only replace t