This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Anzahl der Erfolge (von 8000 möglichen Würfen) | |
# VBA Code in R umgesetzt | |
# http://www.dsa4forum.de/viewtopic.php?f=1&t=28731&sid=3370e39d5a10edc62018a041f3274264&start=30#p1204751 | |
# Eigenschaften 1 bis 3 und der Talentwert | |
e1 <- 10 | |
e2 <- 10 | |
e3 <- 10 | |
taw <- 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rcpp.h> | |
using namespace Rcpp; | |
#include <algorithm> | |
// [[Rcpp::export]] | |
double test (int e1, int e2, int e3, int taw) | |
{ | |
int success = 0, restTaP = 0; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsa <- function(e1,e2,e3,taw){ | |
if (taw<=0){ | |
# Achtung: Hier werden e1:e3 ja bereits mit taw | |
# versehen und sind dann in der folge groesser! | |
# Andererseits, macht das was? Wenn spaeter dsa(e1,e2,e3,0) aufgerufen wird? | |
e1 <- e1+taw | |
e2 <- e2+taw | |
e3 <- e3+taw | |
# Egal in welche Reihenfolge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 184431 2013-05-06 19:39:38Z foutrelis $ | |
# Maintainer: Ronald van Haren <ronald.archlinux.org> | |
# Contributor: Damir Perisa <damir.perisa@bluewin.ch> | |
# Contributor: K. Piche <kpiche@rogers.com> | |
pkgname=r | |
pkgver=3.1.0 | |
pkgrel=01 | |
pkgdesc="Language and environment for statistical computing and graphics" | |
arch=('i686' 'x86_64') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ein paar Werte | |
set.seed(123) | |
x <- 1:200 | |
y <- rnorm(1:200) | |
# Eine ziemlich unnuetze Funktion | |
fun <- function(x,y){ | |
erg <- NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% XeTeX | |
\documentclass[a4paper,12pt]{scrartcl} | |
% Auskommentieren! | |
\usepackage{blindtext} | |
\usepackage[ngerman]{babel} | |
\usepackage{url} | |
\usepackage[top=2.5cm,left=2cm,right=2cm,bottom=2.5cm]{geometry} | |
\usepackage[hidelinks]{hyperref} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% http://latex-community.org/forum/viewtopic.php?f=4&t=1735 | |
\makeatletter | |
\newcommand\@idxitem{\par\hangindent 40\p@} | |
\newcommand\subitem{\@idxitem \hspace*{20\p@}} | |
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}} | |
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax} | |
\makeatother | |
\usepackage{makeidx} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import sys, getopt | |
import pandas as pd | |
try: | |
opts, args = getopt.getopt(sys.argv[1:], 'i:o:s') | |
except getopt.GetoptError as err: | |
# Redirect STDERR to STDOUT (insures screen display) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install.packages("rPython") | |
# requires pandas | |
stata13 <- function(dat, | |
convert.factors = FALSE){ | |
require("rPython") | |
# make dat known to python | |
python.assign('dat',dat) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# buc estimator | |
library("readstata13") | |
dat <- read.dta13("buc.dta") | |
buclogit <- function(eqn, data, stratum) { | |
require("survival") | |
require("Matrix") | |
id <- stratum |
OlderNewer