Category "r"

Does a plug-in selector bivariate kernel density estimator with weights exist for python?

I am trying to calculate the kernel density estimate for a set of weighted bivariate data points. I am currently using KDEpy.FFTKDE. However, this does not prov

Trying to be benchmark dplyr vs data.table

Why does this code not work? How can I benchmark these to expressions? library(data.table) library(dplyr) dt <- as.data.table(mtcars) (lb <- bench::mar

Calculate correlation with cor(), only for numerical columns

I have a dataframe and would like to calculate the correlation (with Spearman, data is categorical and ranked) but only for a subset of columns. I tried with al

[Shiny]: Add link to another tabPanel in another tabPanel

I'm trying to put a link on my "home" tabPanel to all others tabPanels of my app. The idea is as follows: ui = navbarPage("", tabPanel("home",

How to connect SQL Server with Rstudio?

I have downloaded Microsoft SQL Server on my Mac with the Docker image as described here, and also I have downloaded the database AdventureWorks2019 as an exam

Error when using DiceKriging function km: 'Error in t.default(T) : argument is not a matrix'

I'm attempting to apply the km function from the DiceKriging package to a multivariate dataset. When I use my entire dataset (dimensions = [938,13]), the algori

R - Gamma distribution - Linear Mixed-Effects Model - lmer/glmer errors

First time asking here so please let me know if anything else is needed to be able to help! I have analysed my data using lmer() which worked well. I have since

R - Gamma distribution - Linear Mixed-Effects Model - lmer/glmer errors

First time asking here so please let me know if anything else is needed to be able to help! I have analysed my data using lmer() which worked well. I have since

R - Gamma distribution - Linear Mixed-Effects Model - lmer/glmer errors

First time asking here so please let me know if anything else is needed to be able to help! I have analysed my data using lmer() which worked well. I have since

R - Gamma distribution - Linear Mixed-Effects Model - lmer/glmer errors

First time asking here so please let me know if anything else is needed to be able to help! I have analysed my data using lmer() which worked well. I have since