From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eGM7ILcRimIuBAEAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 12:34:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sILaH7cRimKWSgEAauVa8A (envelope-from ) for ; Sun, 22 May 2022 12:34:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0C09430A82 for ; Sun, 22 May 2022 12:34:31 +0200 (CEST) Received: from localhost ([::1]:48790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsiuo-0002Mv-6F for larch@yhetil.org; Sun, 22 May 2022 06:34:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsis2-0002KW-Av for emacs-orgmode@gnu.org; Sun, 22 May 2022 06:31:34 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:39838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsis0-0002Du-5D for emacs-orgmode@gnu.org; Sun, 22 May 2022 06:31:33 -0400 Received: by mail-ej1-x632.google.com with SMTP id gh17so10193205ejc.6 for ; Sun, 22 May 2022 03:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:message-id:mime-version; bh=aIoZJBLwM6bV7WJK9gS7gdTG17F+OZ5WOv/uCg3qBRE=; b=Jns/Lv3v5VrVcAVc8VbkFr6eGmjtZlFx1AO9/OY8SQ7KOL5op9XZ1DHiaEgtr9nqe/ 6GCRnX80lxmMTY9jbDfVsYCYkiqNx9vkWx1uUTUx21Sbu6zN9jChCpcZK4+m8q4SZywN Xb6Z6zm63Jf/qXC0X+dVbhFquoK0Jy897u3B1ZgBFOXw91XkwA+ZN7NlNG9Ntcf2dFlC PlhvcqznUPjJAhhirf0CHIHXQKcghil9nLPUdPUHFBTL0KvowFh+k1XAR85zaypZhYtV c3xnrOyy419B6gi5MFtF0c1Zi0JbLtRhBegACOY4Ypj1cPsCy5c/i5cs0IakG2DLVaCZ PfSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:message-id :mime-version; bh=aIoZJBLwM6bV7WJK9gS7gdTG17F+OZ5WOv/uCg3qBRE=; b=M39zFIIOp0JxEXSI7DtRin+Ne7ztADJQZZuDSuduolj2C4fu38iRSZp4CLWqx0E/WW 3GRvSevBVev+6TtujT6Fj1LhL7RlryhLJyx/0qeojAtaIKEbRw6r/g2pFEvmsbp/mO2D abUFA8DzbKHVSmmUALJ8eJlZcfC2TkfQY+z6rNpd3SCgQy9WZAOYeXNEbdTNug3la9L9 NT4HJqy7L6pcqhuZXZqmQgxKEzNTqCeTWLHtH/YKzTjRzMNoC2Jsp7FvMvIh6YMS9K6H vpesCG+eXzZJATguVRAVM6ghS1AwNUT2zP+Jgqz2GFweutJopcqRkLPa5NV6sTfvfdHA j2OA== X-Gm-Message-State: AOAM532WWhFNuFSWRqoEmfojwFqD3OG4lmXaA7WCvEfsOxNUYORJe3K3 JLXZQ3XxIdR6G95G+/bo61X8JomgPYfuJQ== X-Google-Smtp-Source: ABdhPJzt1eoBs6KiPLoWGk7EKtnGfejUR1I3fK4Y0H1AHpRqEHzqtbhVxzh7cFa72az9tpETPqJEVQ== X-Received: by 2002:a17:907:3e1b:b0:6fe:e1a4:a331 with SMTP id hp27-20020a1709073e1b00b006fee1a4a331mr409549ejc.72.1653215489357; Sun, 22 May 2022 03:31:29 -0700 (PDT) Received: from flexignu ([2a02:908:1d0:8d20:b59d:a6f7:f135:bd2c]) by smtp.gmail.com with ESMTPSA id p4-20020a17090664c400b006fea0532462sm3246248ejn.167.2022.05.22.03.31.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 03:31:28 -0700 (PDT) From: Jeremie Juste To: emacs-orgmode@gnu.org Subject: Re: calculating quartils, tercils (or percentiles) Using R? References: <87sfp2hxyr.fsf@mat.ucm.es> Date: Sun, 22 May 2022 12:31:27 +0200 Message-ID: <87sfp1luyo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=jeremiejuste@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653215671; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aIoZJBLwM6bV7WJK9gS7gdTG17F+OZ5WOv/uCg3qBRE=; b=QGkyAoEx2CtkV4g5Y6Qz5ME4KhOSXOU/7tKN7AZ6o0vjTmQ4sMkQMXGTuHAYP/LZ2N4QMM XiJvjvgA0o26v9UBexqDm66vKzYPgKpmducVpKkDlw17w3uRfRFGXaTv73dxrKtM+NN/eh +XQA2T+tN1SVunNysjQBQXS1Jj7IJxptNhbv8lvwduPU+kYBmXamzQQK4sJW89N4LDP2kS ZSyTdLVAuqhRJPPNXyLcWOQCduWMUpYYA1KHEpukV+omPmGnHY0Pd2/pqDyB8b1dlsdHX6 kcyZUmjMuXxute95m6IuHaPNWCU1MiwSnCZSUCU0gcP7G9+/lqNsA5UblJGDlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653215671; a=rsa-sha256; cv=none; b=dsM9BQVP+E1qblIO/8nsh7oFl0c97rfTJBXWARvwd1vNqDKXDnlIYvjL7EjsD9LwdvKE71 WDYiKDLBKsrpe0wsDh/SgDxaxSLkRqUmyPoesmFvvs4rJflIXkXU0cF9rnd53HMxnlk8Wm ozKYbwgVkhwCNAXngbYp1X4gVPztsSPtfQcfkVOLz07gk35pWm7ERabRr/M18Xm2GIcEB9 7F4OydJBrqRlTYgN8/NEt4KGdUc/6XA5qtZhDoLPF6jFapRYujddiDEyLdyCvrWd0OWnsW VgpH0MvyorTdXAC1GutSAl+JyYSswDOYDawSGQYfJswrDovrxGuCAqinF6l6VA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Jns/Lv3v"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Jns/Lv3v"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0C09430A82 X-Spam-Score: -3.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: T+DGGGFUEjBq Hello Uwe, > On Sunday, 22 May 2022 at 08:40, Uwe Brauer wrote: > but I can't not find a way to calculate other percentiles, like terciles or so. > Does anybody know about this, or a org-function doing it? I would recommend checking the R documentation. #+begin_src R :colnames t :var t1=TC :results output ?quantile #+end_src #+tblname: TC | Data | |------| | 5 | | 10 | | 12 | | 15 | | 20 | | 24 | | 27 | | 30 | | 35 | Consider also the R mailing list r-help@r-project.org. The community is quite active. I believe that you might be looking for the following. #+begin_src R :colnames t :var t1=TC quantile(t1$Data,c(1/3,2/3,1)) #+end_src #+RESULTS: | x | |----| | 14 | | 25 | | 35 | HTH, Jeremie