Authenticate with Alpaca API

October 12, 2024 | R - datawookie

The {alpacar} package for R is a wrapper around the Alpaca API. API documentation can be found here. In this introductory post I show how to install and load the package, then authenticate with the API and retrieve account information. [Read more...]

Ali–Mikhail–Haq copula, [re]simulated

October 12, 2024 | xi'an

When looking for a copula I could simulate from (rather than the Gaussian copula), I found an algorithm for the Ali–Mikhail–Haq copula that was proposed by Kumar (2010) as reproduced above. But the method seriously fails in that the range of (U,V) resulting from the simulation does not ...
[Read more...]

Halloween Data Cleaning

October 12, 2024 | R on kieranhealy.org

This week in Modern Plain Text Computing we put together some of the things we’ve been learning about cleaning and tidying data. Here’s a somewhat sobering example using data from the Fatality Analysis Reporting System, which is how the NTSA tracks information about road accidents in the United ... [Read more...]

Calculating an LOOCV MSE by hand

October 11, 2024 | arthur charpentier

Last week, we had an “mid-term” exam, for our introduction to statistical learning course.  The question is simple: consider three points, , here Consider here some linear models, estimated using least square techniques, what would be the leave-one-out cross-validation MSE ? I like this exercise since we can compute everything easily, by ...
[Read more...]

Introducing: the POLYGON FULL

October 10, 2024 | Edzer Pebesma

Summary Why? How? Examples [view raw Rmd] Summary This post introduces the POLYGON FULL geometry, new in sf 1.0-18 which appeared on CRAN Today. Why? Polygons delineate a two-dimensional bound area. The OGC simple feature access standard...
[Read more...]

R You Ready? Git Your Code Under Control!

October 10, 2024 | Numbers around us

Hey there, ready to get your R code under control? Whether you’re working on your own or in a small team, managing your code can sometimes feel like juggling too many things at once. But don’t worry — there’s an easy way to stay on top of everything. ...
[Read more...]

Methods for the smooth functions in R

October 10, 2024 | Ivan Svetunkov

I have been asked recently by a colleague of mine how to extract the variance from a model estimated using adam() function from the smooth package in R. The problem was that that person started reading the source code of the forecast.adam() and got lost between the lines (this ...
[Read more...]

Use nanoparquet instead of readr/CSV

October 8, 2024 | Stephen Turner

 This is reposted from the original at https://blog.stephenturner.us/p/use-nanoparquet-instead-of-readr-csv.Parquet is interoperable between Python and R, fast to read+write, works well with databases, and stores complex data types (e.g., tib...
[Read more...]

PowerQuery Puzzle solved with R

October 8, 2024 | Numbers around us

#223–224PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #223As usual on weekends we are mainly doing table transformations. Sometimes it need simple manouvers and...
[Read more...]
1 15 16 17 18 19 2,158