content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
\name{righttailp} \alias{righttailp} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Calculating customed Z score } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ A function to calculate customed Z score using the peak of the densi...
/man/righttailp.Rd
permissive
altingia/Classiphy
R
false
false
1,519
rd
\name{righttailp} \alias{righttailp} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Calculating customed Z score } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ A function to calculate customed Z score using the peak of the densi...
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12666412621688e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613106071-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
344
r
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12666412621688e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_methods.r \name{getPredRate} \alias{getPredRate} \title{getPredRate method for the size based model} \usage{ getPredRate(object, n, n_pp, feeding_level) } \arguments{ \item{object}{A \code{MizerParams} object.} \item{n}{A matrix of s...
/man/getPredRate.Rd
no_license
mdsumner/mizer
R
false
true
1,693
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_methods.r \name{getPredRate} \alias{getPredRate} \title{getPredRate method for the size based model} \usage{ getPredRate(object, n, n_pp, feeding_level) } \arguments{ \item{object}{A \code{MizerParams} object.} \item{n}{A matrix of s...
############################################################################################################################################################ # Honey Bee - Nosema Exp Analysis # Performed by JJG - May 25, 2017 ##Edited EPY May 27 to add random effect of cup and fixed effect of time #updated 10 June ...
/Effects of pollen diet on Nosema in honey bees/Statistical analysis/Apis.nosema.infection.v4.reletter.R
no_license
FatherofEverest/Medicinal-value-of-sunflower-pollen-against-bee-pathogens-Data-Availability
R
false
false
11,364
r
############################################################################################################################################################ # Honey Bee - Nosema Exp Analysis # Performed by JJG - May 25, 2017 ##Edited EPY May 27 to add random effect of cup and fixed effect of time #updated 10 June ...
#' Title #' #' @param x data matrix #' @param chains number of chains #' @param iter number of posterior samples for each chain #' @param burnin discarded samples during warmup #' #' @return #' @export #' #' @examples BGGM <- function(x, chains = 2, iter = 1000, burnin = 100 ){ x <- as.matrix(x) ## model mod = "...
/R/BGGM.R
no_license
guhjy/BGGM
R
false
false
1,903
r
#' Title #' #' @param x data matrix #' @param chains number of chains #' @param iter number of posterior samples for each chain #' @param burnin discarded samples during warmup #' #' @return #' @export #' #' @examples BGGM <- function(x, chains = 2, iter = 1000, burnin = 100 ){ x <- as.matrix(x) ## model mod = "...
log <- file(snakemake@log[[1]], open="wt") sink(log) sink(log, type="message") library("fgsea") # provides library("tidyverse") and functions load_bioconductor_package() and # get_prefix_col(), the latter requires snakemake@output[["samples"]] and # snakemake@params[["covariate"]] source( file.path(snakemake@scriptdi...
/workflow/scripts/fgsea.R
permissive
MYB201560476/rna-seq-kallisto-sleuth-1
R
false
false
4,725
r
log <- file(snakemake@log[[1]], open="wt") sink(log) sink(log, type="message") library("fgsea") # provides library("tidyverse") and functions load_bioconductor_package() and # get_prefix_col(), the latter requires snakemake@output[["samples"]] and # snakemake@params[["covariate"]] source( file.path(snakemake@scriptdi...
\name{rho_pwm} \alias{rho_pwm} \title{ Probability-weighted moment frontier estimator } \description{ This function is an implementation of the Probability-weighted moment frontier estimator developed by Daouia, Florens and Simar (2012). } \usage{ rho_pwm(xtab, ytab, x, a=2, lrho=1, urho=Inf) } \argument...
/man/rho_pwm.rd
no_license
cran/npbr
R
false
false
3,306
rd
\name{rho_pwm} \alias{rho_pwm} \title{ Probability-weighted moment frontier estimator } \description{ This function is an implementation of the Probability-weighted moment frontier estimator developed by Daouia, Florens and Simar (2012). } \usage{ rho_pwm(xtab, ytab, x, a=2, lrho=1, urho=Inf) } \argument...
library(testthat) library(vdiffr) library(hagis) test_check("hagis")
/tests/testthat.R
permissive
openplantpathology/hagis
R
false
false
70
r
library(testthat) library(vdiffr) library(hagis) test_check("hagis")
#' #' #' #' Calculate auc for a scored data set. #' #' @description Specify one of the scored data sets. get_auc will calculate the #' #' AUC for that set and append it to a vector of auc values. #' #' @param data_name The name of the data set, defined in the report list. #' #' @param fold An optional param to calcul...
/R/generic_scoring.R
permissive
christiantillich/syberiaReports
R
false
false
4,038
r
#' #' #' #' Calculate auc for a scored data set. #' #' @description Specify one of the scored data sets. get_auc will calculate the #' #' AUC for that set and append it to a vector of auc values. #' #' @param data_name The name of the data set, defined in the report list. #' #' @param fold An optional param to calcul...
## makeCacheMatrix This function creates a special "matrix" object that can cache its inverse. ## create a structure to store the inverse and create the function to mamamanage the cache ## retutn a function list to ## set= set the value of the matrix ## get = get the value of the matrix ## setinverse = set the value of...
/cachematrix.R
no_license
bigostone/ProgrammingAssignment2
R
false
false
1,688
r
## makeCacheMatrix This function creates a special "matrix" object that can cache its inverse. ## create a structure to store the inverse and create the function to mamamanage the cache ## retutn a function list to ## set= set the value of the matrix ## get = get the value of the matrix ## setinverse = set the value of...
#' Automatically create a ggplot for objects obtained from univariate_average_premium() #' #' @description Takes an object produced by \code{univariate_average_premium()}, and plots the average premium. #' #' @param x univ_avgpremium object produced by \code{univariate_average_premium()} #' @param background show expos...
/R/univariate_5avgpremium_plot.R
no_license
emailhy/insurancerating
R
false
false
4,257
r
#' Automatically create a ggplot for objects obtained from univariate_average_premium() #' #' @description Takes an object produced by \code{univariate_average_premium()}, and plots the average premium. #' #' @param x univ_avgpremium object produced by \code{univariate_average_premium()} #' @param background show expos...
= Rubyで使われる記号の意味(正規表現の複雑な記号は除く) [[ref:ex]] [[ref:q]] [[ref:num]] [[ref:per]] [[ref:and]] [[ref:or]]  [[ref:plus]] [[ref:minus]] [[ref:ast]] [[ref:slash]] [[ref:hat]] [[ref:sq]]  [[ref:period]] [[ref:comma]] [[ref:langl]] [[ref:rangl]] [[ref:eq]] [[ref:tilde]]  [[ref:dollar]] [[ref:at]] [[ref:under]] [[ref:lbra]][[ref:...
/refm/doc/symref.rd
permissive
nekomaho/doctree
R
false
false
16,435
rd
= Rubyで使われる記号の意味(正規表現の複雑な記号は除く) [[ref:ex]] [[ref:q]] [[ref:num]] [[ref:per]] [[ref:and]] [[ref:or]]  [[ref:plus]] [[ref:minus]] [[ref:ast]] [[ref:slash]] [[ref:hat]] [[ref:sq]]  [[ref:period]] [[ref:comma]] [[ref:langl]] [[ref:rangl]] [[ref:eq]] [[ref:tilde]]  [[ref:dollar]] [[ref:at]] [[ref:under]] [[ref:lbra]][[ref:...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_emissions_batch_ssp2_emissions_factors_xml #' #' Construct XML data structure for \code{ssp2_emissions_factors.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends...
/R/zchunk_batch_ssp2_emissions_factors_xml.R
permissive
almondtea/gcamdata
R
false
false
1,774
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_emissions_batch_ssp2_emissions_factors_xml #' #' Construct XML data structure for \code{ssp2_emissions_factors.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends...
shinyServer(function(input, output) { data_error <- reactive({ giveTableError(dtaUseByShiny) }) output$mean_inf_error <- renderText({ paste0("Mean Inf error : ", round(mean(data_error()$Inf_error), 1)) }) output$mean_sup_error <- renderText({ paste0("Mean Sup error : ", round(mean(data_er...
/inst/shinyError/server.R
no_license
rte-antares-rpackage/fbAntares
R
false
false
1,603
r
shinyServer(function(input, output) { data_error <- reactive({ giveTableError(dtaUseByShiny) }) output$mean_inf_error <- renderText({ paste0("Mean Inf error : ", round(mean(data_error()$Inf_error), 1)) }) output$mean_sup_error <- renderText({ paste0("Mean Sup error : ", round(mean(data_er...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ODBCConnection.R \docType{methods} \name{dbListFields,ODBCConnection,character-method} \alias{dbListFields,ODBCConnection,character-method} \title{List fields in specified table.} \usage{ \S4method{dbListFields}{ODBCConnection,character}(conn...
/man/dbListFields-ODBCConnection-character-method.Rd
permissive
AWADHAMBIKA/RIBMDBDBI
R
false
true
736
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ODBCConnection.R \docType{methods} \name{dbListFields,ODBCConnection,character-method} \alias{dbListFields,ODBCConnection,character-method} \title{List fields in specified table.} \usage{ \S4method{dbListFields}{ODBCConnection,character}(conn...
#Get the forecast library library (forecast) Movies <-read.csv(file.choose()) #Display the first 6 rows from the document chosen head(Movies) View(Movies) FamousMovies <- subset(Movies, votes>500) View(FamousMovies) FamousRecentMovies<-subset(FamousMovies, year>1980) FamousRecentBudgetMovies<-subset(FamousRecentMovi...
/Linear Regression on MoviesSimple/Regression_on_MoviesSimple.R
no_license
ashishpowani/Regression-Analysis
R
false
false
1,109
r
#Get the forecast library library (forecast) Movies <-read.csv(file.choose()) #Display the first 6 rows from the document chosen head(Movies) View(Movies) FamousMovies <- subset(Movies, votes>500) View(FamousMovies) FamousRecentMovies<-subset(FamousMovies, year>1980) FamousRecentBudgetMovies<-subset(FamousRecentMovi...
#quiz1 download.file('https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv','Fsso6hid.csv',method='curl') data <- data.table(read.csv('Fsso6hid.csv',header=T)) splits <- strsplit(colnames(data),'wgtp') splits[123] #quiz2 download.file('https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv','FGD...
/Cleaning Data/Week4.R
no_license
rparthas/datasciencecoursera
R
false
false
1,099
r
#quiz1 download.file('https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv','Fsso6hid.csv',method='curl') data <- data.table(read.csv('Fsso6hid.csv',header=T)) splits <- strsplit(colnames(data),'wgtp') splits[123] #quiz2 download.file('https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv','FGD...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{TrajLength} \alias{TrajLength} \title{Trajectory length} \usage{ TrajLength(trj, startIndex = 1, endIndex = nrow(trj)) } \arguments{ \item{trj}{Trajectory whose length is to be calculated.} \item{startIndex}{Index of the starti...
/man/TrajLength.Rd
no_license
JimMcL/trajr
R
false
true
621
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{TrajLength} \alias{TrajLength} \title{Trajectory length} \usage{ TrajLength(trj, startIndex = 1, endIndex = nrow(trj)) } \arguments{ \item{trj}{Trajectory whose length is to be calculated.} \item{startIndex}{Index of the starti...
library(forcats) library(tidyverse) library(broom) library(gtools) library(ggrepel) ru2 <- ru1 ru2$newjob <- factor(ru2$newjob, levels = unique(ru2$newjob)) ru2$promotion <- factor(ru2$promotion, levels = unique(ru2$promotion)) ru2$lateral <- factor(ru2$lateral, levels = unique(ru2$lateral)) ru2 %>% ...
/02.mobility measure.R
no_license
Privlko/ru_mobility
R
false
false
10,900
r
library(forcats) library(tidyverse) library(broom) library(gtools) library(ggrepel) ru2 <- ru1 ru2$newjob <- factor(ru2$newjob, levels = unique(ru2$newjob)) ru2$promotion <- factor(ru2$promotion, levels = unique(ru2$promotion)) ru2$lateral <- factor(ru2$lateral, levels = unique(ru2$lateral)) ru2 %>% ...
library(ggplot2) library(reshape2) library(seqinr) require(gtable) library(gridExtra) require(plyr) require(beeswarm) # Pfizer path <- '/home/nofar/Desktop/Lab/CDR3_check/' setwd(path) pfizerData.df <- read.csv(file = 'PFIZER_ALL_totalLeavesType_combineAB.tab' ,header= T, stringsAsFactors= F,sep = '\t') pfizerData....
/Get_percent_overlap_of_isotopes.R
no_license
nofarbardugo/Jproj
R
false
false
5,218
r
library(ggplot2) library(reshape2) library(seqinr) require(gtable) library(gridExtra) require(plyr) require(beeswarm) # Pfizer path <- '/home/nofar/Desktop/Lab/CDR3_check/' setwd(path) pfizerData.df <- read.csv(file = 'PFIZER_ALL_totalLeavesType_combineAB.tab' ,header= T, stringsAsFactors= F,sep = '\t') pfizerData....
library(testthat) library(flametree) test_check("flametree")
/tests/testthat.R
permissive
thiagoscarelli/flametree
R
false
false
62
r
library(testthat) library(flametree) test_check("flametree")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colname_methods.R \name{setOCRatioColName} \alias{setOCRatioColName} \title{Set the name of the O:C ratio column} \usage{ setOCRatioColName(ftmsObj, cname) } \arguments{ \item{ftmsObj}{an object of type ftmsData} \item{cname}{column name} } ...
/man/setOCRatioColName.Rd
permissive
EMSL-Computing/ftmsRanalysis
R
false
true
466
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colname_methods.R \name{setOCRatioColName} \alias{setOCRatioColName} \title{Set the name of the O:C ratio column} \usage{ setOCRatioColName(ftmsObj, cname) } \arguments{ \item{ftmsObj}{an object of type ftmsData} \item{cname}{column name} } ...
# TODO: Split it into two files: one merging the stats table and the # other merging a stats table with a schedule table require(dplyr) require(optparse) # Parse out arguments today = strftime(Sys.Date(), format="%Y-%m-%d") option_list = list( make_option(c("-s", "--season"), type="character", default="2016-2017",...
/bin/mergeTables_JD.R
no_license
jamesdi1993/MoneyBall
R
false
false
4,498
r
# TODO: Split it into two files: one merging the stats table and the # other merging a stats table with a schedule table require(dplyr) require(optparse) # Parse out arguments today = strftime(Sys.Date(), format="%Y-%m-%d") option_list = list( make_option(c("-s", "--season"), type="character", default="2016-2017",...
library(RMySQL) library(plotrix) library(xtable) correlacao <- function(tables,metrics,title) { df <- NULL for (table in tables){ print(paste(title,table,sep = "->")) con <- dbConnect(MySQL(), user = 'root', password = 'admin', host = 'localhost', dbname='software') query <- "SELECT SUM(Affected) ...
/Correlation_metric_by_vulnerability_number.R
no_license
rickards/Vulnerability_Data_Analysis_In_R
R
false
false
2,189
r
library(RMySQL) library(plotrix) library(xtable) correlacao <- function(tables,metrics,title) { df <- NULL for (table in tables){ print(paste(title,table,sep = "->")) con <- dbConnect(MySQL(), user = 'root', password = 'admin', host = 'localhost', dbname='software') query <- "SELECT SUM(Affected) ...
test_that("diagrammer object can be created", { renderGraph = dag_create() %>% dag_node("# of Hot Day Beachgoers") %>% dag_node(c("Rent by Location", "Beachgoer Location Probability"), obs = TRUE) %>% dag_node(c("Revenue","Expenses","Profit"), det = TRUE) %>% d...
/tests/testthat/test-dag_diagramer.R
permissive
flyaflya/causact
R
false
false
819
r
test_that("diagrammer object can be created", { renderGraph = dag_create() %>% dag_node("# of Hot Day Beachgoers") %>% dag_node(c("Rent by Location", "Beachgoer Location Probability"), obs = TRUE) %>% dag_node(c("Revenue","Expenses","Profit"), det = TRUE) %>% d...
##' @export ##' @method summary PCAmix summary.PCAmix <- function(object, ...) { x <- object if (!inherits(x, "PCAmix")) stop("use only with \"PCAmix\" objects") cat("\nCall:\n", deparse(x$call), "\n\n", sep = "") n <- x$rec$n p1 <- x$rec$p1 p <- x$rec$p p2 <- p-p1 if (colname...
/R/summary.PCAmix.R
no_license
jialih/PCAmixdata
R
false
false
1,450
r
##' @export ##' @method summary PCAmix summary.PCAmix <- function(object, ...) { x <- object if (!inherits(x, "PCAmix")) stop("use only with \"PCAmix\" objects") cat("\nCall:\n", deparse(x$call), "\n\n", sep = "") n <- x$rec$n p1 <- x$rec$p1 p <- x$rec$p p2 <- p-p1 if (colname...
#................................ #....Data Preprocessing Part .... #................................ #Choose Either a real dataset or a synthetic dataset #Select a synthetic data set from Synthetic Datasets folder Y = read.csv('C:/Users/ABDUL WAHID/Google Drive/Iit Ism_/2019/new work/project/ionosphere.csv')...
/Modified_project.R
no_license
abdul1617/Outlier-Detection
R
false
false
8,238
r
#................................ #....Data Preprocessing Part .... #................................ #Choose Either a real dataset or a synthetic dataset #Select a synthetic data set from Synthetic Datasets folder Y = read.csv('C:/Users/ABDUL WAHID/Google Drive/Iit Ism_/2019/new work/project/ionosphere.csv')...
context("Parse cai successfully.") library(codonfriend) test_that("read_cai Parses well formatted file", { string <- "Sequence: gene1 CAI: 0.1 Sequence: gene2 CAI: 0.2" # NB textConnection creates a file-like object for readLines to work on. con <- textConnection(string) table <- read_cai(con) expect_equal...
/tests/testthat/test-parse-cai.R
permissive
CCDM-Programming-Club/codonfriend
R
false
false
1,899
r
context("Parse cai successfully.") library(codonfriend) test_that("read_cai Parses well formatted file", { string <- "Sequence: gene1 CAI: 0.1 Sequence: gene2 CAI: 0.2" # NB textConnection creates a file-like object for readLines to work on. con <- textConnection(string) table <- read_cai(con) expect_equal...
lapply(c("tidyverse", "lubridate", "rgdal", "geoR", "fields", "mvtnorm", "MASS", "reshape", "WhatIf"), library, character.only = TRUE) theme_set(theme_minimal(base_size = 14)) ##-------------------------------------------------------------------------------------------------------- ## SCRIPT : Fonctions pour Krigeage...
/R/codes/Spatial/krigeage_origin.r
no_license
Rmomal/these
R
false
false
18,263
r
lapply(c("tidyverse", "lubridate", "rgdal", "geoR", "fields", "mvtnorm", "MASS", "reshape", "WhatIf"), library, character.only = TRUE) theme_set(theme_minimal(base_size = 14)) ##-------------------------------------------------------------------------------------------------------- ## SCRIPT : Fonctions pour Krigeage...
######################################################################################### # An R function to make a personalized map of people you follow and who follow you on twitter. # R functions Copyright (C) 2011 Jeff Leek (jtleek@gmail.com), and the Simply Statistics Blog # (http://simplystatistics.tumblr....
/tweets/twitteR/twitterMap.R
no_license
chengjun/Research
R
false
false
10,859
r
######################################################################################### # An R function to make a personalized map of people you follow and who follow you on twitter. # R functions Copyright (C) 2011 Jeff Leek (jtleek@gmail.com), and the Simply Statistics Blog # (http://simplystatistics.tumblr....
#downloading and unziping raw data datasetUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(datasetUrl, "assign1_data.zip") unzip("assign1_data.zip", exdir = "data") #reading in raw data library(data.table) library(dplyr) rawDT <- filter(fread("./data/househo...
/plot3.R
no_license
bokroscsiga/ExData_Plotting1
R
false
false
1,115
r
#downloading and unziping raw data datasetUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(datasetUrl, "assign1_data.zip") unzip("assign1_data.zip", exdir = "data") #reading in raw data library(data.table) library(dplyr) rawDT <- filter(fread("./data/househo...
\name{remove.Point} \alias{remove.Point} \title{Removes a time point from a TextGrid} \usage{ remove.Point(textgrid, tier, point, text) } \arguments{ \item{textgrid}{The TextGrid object to modify.} \item{tier}{The name of the IntervalTier as a character vector.} \item{point}{The time point to be removed.} ...
/man/remove.Point.Rd
no_license
jpellman/textgridR
R
false
false
491
rd
\name{remove.Point} \alias{remove.Point} \title{Removes a time point from a TextGrid} \usage{ remove.Point(textgrid, tier, point, text) } \arguments{ \item{textgrid}{The TextGrid object to modify.} \item{tier}{The name of the IntervalTier as a character vector.} \item{point}{The time point to be removed.} ...
yppeSurv <- function(time, z, par, rho, tau, n_int){ q <- length(z) psi <- par[1:q] phi <- par[(q+1):(2*q)] gamma <- par[(2*q+1):(2*q+n_int)]/tau theta <- exp( as.numeric(z%*%phi) ) ratio <- exp( as.numeric(z%*%(psi-phi)) ) Ht0 <- Hpexp(time, rho, gamma) Rt0 = expm1(Ht0) aux <- ratio*Rt0 St <- exp...
/R/survival_yppe.R
permissive
fndemarqui/YPPE
R
false
false
9,826
r
yppeSurv <- function(time, z, par, rho, tau, n_int){ q <- length(z) psi <- par[1:q] phi <- par[(q+1):(2*q)] gamma <- par[(2*q+1):(2*q+n_int)]/tau theta <- exp( as.numeric(z%*%phi) ) ratio <- exp( as.numeric(z%*%(psi-phi)) ) Ht0 <- Hpexp(time, rho, gamma) Rt0 = expm1(Ht0) aux <- ratio*Rt0 St <- exp...
library("shiny") shinyServer(function(input,output){ data<-read.csv("Spencer_Sales.csv",header=TRUE,stringsAsFactors=FALSE) data$date<-as.Date(as.character(data$date),format="%d-%m-%Y") #data$quantity<-as.numeric(data$quantity) #data$cog_value<-as.numeric(data$cog_value) #data$net_value<-as.numeric(...
/midterm_project/project11/UI/server.R
no_license
shaofeiyang/531w16
R
false
false
6,264
r
library("shiny") shinyServer(function(input,output){ data<-read.csv("Spencer_Sales.csv",header=TRUE,stringsAsFactors=FALSE) data$date<-as.Date(as.character(data$date),format="%d-%m-%Y") #data$quantity<-as.numeric(data$quantity) #data$cog_value<-as.numeric(data$cog_value) #data$net_value<-as.numeric(...
### Bootstrap Resampler: Subgroups ### # Inputs # # @Y: Outcome (if survival, should be Surv(time, event)) # @A: Binary Treatment (A=0 vs A=1) # @X: Covariate Space # @fit: Fitted model (from wrapper using observed data) # @wrapper: Wrapper name # @trteff_method: Approach for estimating treatment effects (ex: cox, ols,...
/R/resampler_boot.R
no_license
thomasjemielita/StratifiedMedicine
R
false
false
6,650
r
### Bootstrap Resampler: Subgroups ### # Inputs # # @Y: Outcome (if survival, should be Surv(time, event)) # @A: Binary Treatment (A=0 vs A=1) # @X: Covariate Space # @fit: Fitted model (from wrapper using observed data) # @wrapper: Wrapper name # @trteff_method: Approach for estimating treatment effects (ex: cox, ols,...
\name{TCC-class} \docType{class} \alias{TCC-class} \alias{show} \alias{show,TCC-method} \alias{'['} \alias{[,TCC-method} \alias{subset} \alias{subset,TCC-method} \alias{subset.TCC} \alias{length,TCC-method} \title{A container for storing information used in TCC} \description{ This is the container class for TCC. This c...
/man/TCC-class.Rd
no_license
agartland/TCC
R
false
false
3,973
rd
\name{TCC-class} \docType{class} \alias{TCC-class} \alias{show} \alias{show,TCC-method} \alias{'['} \alias{[,TCC-method} \alias{subset} \alias{subset,TCC-method} \alias{subset.TCC} \alias{length,TCC-method} \title{A container for storing information used in TCC} \description{ This is the container class for TCC. This c...
library(muRL) ### Name: zips ### Title: A .tab file of US ZIP code data for mapping recipients ### Aliases: zips ### Keywords: datasets ### ** Examples data(zips) summary(zips$lat) summary(zips$lon) ## Extracting latitude and longitude. ## Create a sample survey data frame with an ID variable, ## respondent ZI...
/data/genthat_extracted_code/muRL/examples/zips.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
757
r
library(muRL) ### Name: zips ### Title: A .tab file of US ZIP code data for mapping recipients ### Aliases: zips ### Keywords: datasets ### ** Examples data(zips) summary(zips$lat) summary(zips$lon) ## Extracting latitude and longitude. ## Create a sample survey data frame with an ID variable, ## respondent ZI...
\name{NEWS} \title{News for Package \pkg{caret}} \newcommand{\cpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}} \section{Changes in version 6.0-xx}{ \itemize{ \item A new model using the \cpkg{randomForest} and \cpkg{inTrees} packages called \code{rfRules} was added. A basic random forest model is used a...
/pkg/caret/inst/NEWS.Rd
no_license
da-steve101/caret
R
false
false
79,879
rd
\name{NEWS} \title{News for Package \pkg{caret}} \newcommand{\cpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}} \section{Changes in version 6.0-xx}{ \itemize{ \item A new model using the \cpkg{randomForest} and \cpkg{inTrees} packages called \code{rfRules} was added. A basic random forest model is used a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/primary_api.R \name{trading_md} \alias{trading_md} \title{Primary API Market Data Real Time} \usage{ trading_md(environment = "reMarkets", market_id = "ROFX", symbol, entries = c("BI", "OF", "LA", "OP", "CL", "SE", "OI"), depth = 1L) } \arg...
/man/trading_md.Rd
permissive
soberto/rRofex
R
false
true
1,136
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/primary_api.R \name{trading_md} \alias{trading_md} \title{Primary API Market Data Real Time} \usage{ trading_md(environment = "reMarkets", market_id = "ROFX", symbol, entries = c("BI", "OF", "LA", "OP", "CL", "SE", "OI"), depth = 1L) } \arg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read.spc.modified.R \name{read_spc_nosubhdr} \alias{read_spc_nosubhdr} \title{Import for Thermo Galactic's spc file format These functions allow to import .spc files.} \usage{ read_spc_nosubhdr(filename, keys.hdr2data = c("fexper", "fres", "f...
/man/read-spc.Rd
no_license
BioSystemsUM/specmine
R
false
true
2,653
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read.spc.modified.R \name{read_spc_nosubhdr} \alias{read_spc_nosubhdr} \title{Import for Thermo Galactic's spc file format These functions allow to import .spc files.} \usage{ read_spc_nosubhdr(filename, keys.hdr2data = c("fexper", "fres", "f...
library('twitteR') library('ROAuth') library('RCurl') library('plyr') library('dplyr') library('lubridate') #library('openssl') #library('httpuv') library('rtweet') library('ggplot2') library('stringr') library('data.table') #-------------------------------Authentication-------------------------- con...
/twitter_crawl_single.r
no_license
asmitapoddar/Twitter-Crawling-and-Visualization
R
false
false
7,681
r
library('twitteR') library('ROAuth') library('RCurl') library('plyr') library('dplyr') library('lubridate') #library('openssl') #library('httpuv') library('rtweet') library('ggplot2') library('stringr') library('data.table') #-------------------------------Authentication-------------------------- con...
#' Peels spring prep #' #' Preps a network that is part of the peels quintet family to be emmbedded using setse #' #' @param g an igraph object. A network that has been created to contain two classes and have the peels quintet structure #' @export #' peels_spring_prep <- function(g){ edge_change <- as_data_frame...
/peels_spring_prep.R
no_license
JonnoB/Useful_PhD__R_Functions
R
false
false
1,331
r
#' Peels spring prep #' #' Preps a network that is part of the peels quintet family to be emmbedded using setse #' #' @param g an igraph object. A network that has been created to contain two classes and have the peels quintet structure #' @export #' peels_spring_prep <- function(g){ edge_change <- as_data_frame...
X <- matrix(runif(10*20), nrow=10, ncol=20) Y <- matrix(runif(10*15), nrow=10, ncol=15) out1 <- PLSSVD(X, Y, k=2) out2 <- PLSSVD(X, Y, deflation=TRUE, k=2) out3 <- PLSSVD(X, Y, fullrank=TRUE, k=2) out4 <- PLSSVD(X, Y, deflation=TRUE, fullrank=TRUE, k=2) expect_equal(dim(out1$u), c(ncol(X), 2)) expect_equal(length(out...
/tests/testthat/test_PLSSVD.R
permissive
rikenbit/guidedPLS
R
false
false
715
r
X <- matrix(runif(10*20), nrow=10, ncol=20) Y <- matrix(runif(10*15), nrow=10, ncol=15) out1 <- PLSSVD(X, Y, k=2) out2 <- PLSSVD(X, Y, deflation=TRUE, k=2) out3 <- PLSSVD(X, Y, fullrank=TRUE, k=2) out4 <- PLSSVD(X, Y, deflation=TRUE, fullrank=TRUE, k=2) expect_equal(dim(out1$u), c(ncol(X), 2)) expect_equal(length(out...
# Concentration-time data # This script makes fake concentration-time data to play with. # Housekeeping ----------------------------------------------------------- library(tidyverse) library(LaurasHelpers) # Generating fake data ------------------------------------------------------- # Let's say we have 50 subject...
/Concentration-time data.R
no_license
shirewoman2/HandsOnR
R
false
false
6,792
r
# Concentration-time data # This script makes fake concentration-time data to play with. # Housekeeping ----------------------------------------------------------- library(tidyverse) library(LaurasHelpers) # Generating fake data ------------------------------------------------------- # Let's say we have 50 subject...
#read data data <- read.csv2("household_power_consumption.txt", na.strings="?", nrows=2880, skip=66637, header=FALSE, col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3" )) #convert time and date data$Date<-as...
/plot4.R
no_license
Jannelizm/ExData_Plotting1
R
false
false
1,430
r
#read data data <- read.csv2("household_power_consumption.txt", na.strings="?", nrows=2880, skip=66637, header=FALSE, col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3" )) #convert time and date data$Date<-as...
install.packages(c("plyr", "reshape2", "dplyr", "ggplot2"), repos=c("http://cran.rstudio.com/"))
/install_packages.R
permissive
royseto/devbase
R
false
false
113
r
install.packages(c("plyr", "reshape2", "dplyr", "ggplot2"), repos=c("http://cran.rstudio.com/"))
NN <- 1000 require(modelUtils) X = cbind(rep(1,NN), rnorm(NN), runif(NN)) Y = X %*% c(2, 2, 4) + rnorm(NN, 0, 2) xx <- fitModel(Y ~ X - 1, family = gaussian()) print(coefficients(xx) - coefficients(lm(Y ~ X - 1))) print(paste("sum is (should be 0)", sum(predict(lm(Y ~ X - 1)) - predict(xx)))) print(paste("sum is (sh...
/inst/testSuite.R
no_license
romainkp/modelUtils
R
false
false
2,413
r
NN <- 1000 require(modelUtils) X = cbind(rep(1,NN), rnorm(NN), runif(NN)) Y = X %*% c(2, 2, 4) + rnorm(NN, 0, 2) xx <- fitModel(Y ~ X - 1, family = gaussian()) print(coefficients(xx) - coefficients(lm(Y ~ X - 1))) print(paste("sum is (should be 0)", sum(predict(lm(Y ~ X - 1)) - predict(xx)))) print(paste("sum is (sh...
mat <- makeCacheMatrix(matrix(c(1, 1, 1, 1, -1, 1, -1, 1, 1),3,3)) mat$get() mat$getinverse() cacheSolve(mat) mat$getinverse() cacheSolve(mat)
/examplerun.R
no_license
uditg/ProgrammingAssignment2
R
false
false
142
r
mat <- makeCacheMatrix(matrix(c(1, 1, 1, 1, -1, 1, -1, 1, 1),3,3)) mat$get() mat$getinverse() cacheSolve(mat) mat$getinverse() cacheSolve(mat)
#' @name B1_sma #' @title Slope of standardized major axis regression (SMA). #' @description It calculates the slope (B1) for the bivariate linear relationship #' between predicted and observed values following the SMA regression. #' @param data (Optional) argument to call an existing data frame containing the data. #...
/R/reg_B1_sma.R
permissive
adriancorrendo/metrica
R
false
false
2,720
r
#' @name B1_sma #' @title Slope of standardized major axis regression (SMA). #' @description It calculates the slope (B1) for the bivariate linear relationship #' between predicted and observed values following the SMA regression. #' @param data (Optional) argument to call an existing data frame containing the data. #...
### DESCRIPTION ################################################################################### # Create density plot. ### PREAMBLE ###################################################################################### setwd('/Users/wsu31/OneDrive/Orsulic Lab Things/Pipeline/log regression/'); library(BoutrosLab...
/print/print.density.plot.R
no_license
wendy-su-0/linear-models
R
false
false
2,016
r
### DESCRIPTION ################################################################################### # Create density plot. ### PREAMBLE ###################################################################################### setwd('/Users/wsu31/OneDrive/Orsulic Lab Things/Pipeline/log regression/'); library(BoutrosLab...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{fscore} \alias{fscore} \title{Computes the fscore between two matrices} \usage{ fscore(A, B, eps = 1e-04) } \arguments{ \item{A}{first matrix} \item{B}{second matrix} \item{eps}{real number such that edges whose values are sma...
/spectralGraphTopology/man/fscore.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
522
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{fscore} \alias{fscore} \title{Computes the fscore between two matrices} \usage{ fscore(A, B, eps = 1e-04) } \arguments{ \item{A}{first matrix} \item{B}{second matrix} \item{eps}{real number such that edges whose values are sma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatchlogs_operations.R \name{cloudwatchlogs_delete_resource_policy} \alias{cloudwatchlogs_delete_resource_policy} \title{Deletes a resource policy from this account} \usage{ cloudwatchlogs_delete_resource_policy(policyName) } \arguments{...
/cran/paws.management/man/cloudwatchlogs_delete_resource_policy.Rd
permissive
TWarczak/paws
R
false
true
704
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatchlogs_operations.R \name{cloudwatchlogs_delete_resource_policy} \alias{cloudwatchlogs_delete_resource_policy} \title{Deletes a resource policy from this account} \usage{ cloudwatchlogs_delete_resource_policy(policyName) } \arguments{...
plot3 <- function(){ library(dplyr) library(lubridate) x <- subset(read.csv("household_power_consumption.txt", sep = ";"), Date == "1/2/2007") y <- subset(read.csv("household_power_consumption.txt", sep = ";"), Date == "2/2/2007") x <- rbind(x, y) rm(y) x$Date <- as.Date(x$Da...
/plot3.R
no_license
dlevert/ExData_Plotting1
R
false
false
888
r
plot3 <- function(){ library(dplyr) library(lubridate) x <- subset(read.csv("household_power_consumption.txt", sep = ";"), Date == "1/2/2007") y <- subset(read.csv("household_power_consumption.txt", sep = ";"), Date == "2/2/2007") x <- rbind(x, y) rm(y) x$Date <- as.Date(x$Da...
##predict in group c library(data.table) library(fst) library(pROC) library(ggplot2) library(stringr) library(scales) envdir<-'/n/groups/patel/yixuan/PRS_ERS_DRS/XWAS/B_stepwise/' IDlist<-read.table("/n/groups/patel/yixuan/PRS_ERS_DRS/IDs/ID_C.txt",header=TRUE) df<-read_fst("/n/groups/patel/yixuan/PRS_ERS_DRS/proc...
/PXS_3_predict_PRS.R
no_license
yixuanh/poly-exposure-score
R
false
false
1,891
r
##predict in group c library(data.table) library(fst) library(pROC) library(ggplot2) library(stringr) library(scales) envdir<-'/n/groups/patel/yixuan/PRS_ERS_DRS/XWAS/B_stepwise/' IDlist<-read.table("/n/groups/patel/yixuan/PRS_ERS_DRS/IDs/ID_C.txt",header=TRUE) df<-read_fst("/n/groups/patel/yixuan/PRS_ERS_DRS/proc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{dm3_HindIII_50000} \alias{dm3_HindIII_50000} \title{Genomic features for dm3 genome and HindIII restriction enzyme at 50 Kbp} \format{A data frame with 2612 rows and 5 variables: \describe{ \item{chr:}{chromoso...
/man/dm3_HindIII_50000.Rd
no_license
4DGenome/hicfeatures
R
false
true
856
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{dm3_HindIII_50000} \alias{dm3_HindIII_50000} \title{Genomic features for dm3 genome and HindIII restriction enzyme at 50 Kbp} \format{A data frame with 2612 rows and 5 variables: \describe{ \item{chr:}{chromoso...
library(OpenImageR) ### Name: RGB_to_HSV ### Title: Conversion of RGB to HSV colour type ### Aliases: RGB_to_HSV ### ** Examples library(OpenImageR) set.seed(1) array_3d = array(sample(1:255, 675, replace = TRUE), c(15, 15, 3)) res = RGB_to_HSV(array_3d)
/data/genthat_extracted_code/OpenImageR/examples/RGB_to_HSV.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
266
r
library(OpenImageR) ### Name: RGB_to_HSV ### Title: Conversion of RGB to HSV colour type ### Aliases: RGB_to_HSV ### ** Examples library(OpenImageR) set.seed(1) array_3d = array(sample(1:255, 675, replace = TRUE), c(15, 15, 3)) res = RGB_to_HSV(array_3d)
getwd() setwd("/misc/jasper/navarreten/analisis_texto_metaforas") getwd() rm(data) data<-read.csv("conteo_palabras_todos.csv") View(data) #Grupo solo primaria data1<-subset(data,nivel==1) #data1 #View(data1) #Grupo solo secundaria data2<-subset(data,nivel==2) #data2 #View(data2) #Grupo solo hombres data3<-subset...
/analisis_texto_metaforas/analisis_conteo_palabras/1_asignacion_variables_conteopalabras.R
no_license
Drablaguna/EvaluacionCognitiva
R
false
false
792
r
getwd() setwd("/misc/jasper/navarreten/analisis_texto_metaforas") getwd() rm(data) data<-read.csv("conteo_palabras_todos.csv") View(data) #Grupo solo primaria data1<-subset(data,nivel==1) #data1 #View(data1) #Grupo solo secundaria data2<-subset(data,nivel==2) #data2 #View(data2) #Grupo solo hombres data3<-subset...
#' #' Function to perform multiple adjacency spectral embedding #' #' @param Adj_list a list of adjacency matrices with the same size n x n #' @param d number of joint embedding dimensions. If NA, dimension is chosen automatically #' @param d_vec vector of individual embedding dimensions for each graph. If NA, it is ...
/R/mase.R
no_license
kristianeschenburg/mase
R
false
false
9,033
r
#' #' Function to perform multiple adjacency spectral embedding #' #' @param Adj_list a list of adjacency matrices with the same size n x n #' @param d number of joint embedding dimensions. If NA, dimension is chosen automatically #' @param d_vec vector of individual embedding dimensions for each graph. If NA, it is ...
#Import the data and install related libraries train_path <- ("https://raw.githubusercontent.com/subha89/TalkingData-Fault-Deduction/master/") test_path <- ("https://raw.githubusercontent.com/subha89/TalkingData-Fault-Deduction/master/") if(!require(tidyverse)) install.packages("tidyverse", repos ="http:/...
/Talkingdata-Adtracking-Fraud-deduction.R
no_license
subha89/TalkingData-Fault-Deduction
R
false
false
9,685
r
#Import the data and install related libraries train_path <- ("https://raw.githubusercontent.com/subha89/TalkingData-Fault-Deduction/master/") test_path <- ("https://raw.githubusercontent.com/subha89/TalkingData-Fault-Deduction/master/") if(!require(tidyverse)) install.packages("tidyverse", repos ="http:/...
library(gapminder) # Note: This code creates data sets to use in each tab. # It removes Kuwait since Kuwait distorts the gdp scale all_data <- dplyr::filter(gapminder, country != "Kuwait") africa_data <- dplyr::filter(gapminder, continent == "Africa") americas_data <- dplyr::filter(gapminder, continent == "Americas") ...
/shiny-learning/module-example/data.R
no_license
Huffyphenix/hello-world
R
false
false
527
r
library(gapminder) # Note: This code creates data sets to use in each tab. # It removes Kuwait since Kuwait distorts the gdp scale all_data <- dplyr::filter(gapminder, country != "Kuwait") africa_data <- dplyr::filter(gapminder, continent == "Africa") americas_data <- dplyr::filter(gapminder, continent == "Americas") ...
# initalize --------------------------------------------------------------- options(scipen=999) pacman::p_load(data.table, skimr) # load data --------------------------------------------------------------- train <- fread('data/input/train.csv') test <- fread('data/input/test.csv') # combine train and test datase...
/00_import.R
no_license
eryamada/titanic
R
false
false
443
r
# initalize --------------------------------------------------------------- options(scipen=999) pacman::p_load(data.table, skimr) # load data --------------------------------------------------------------- train <- fread('data/input/train.csv') test <- fread('data/input/test.csv') # combine train and test datase...
# file id ----------------------------------------------------------------- # @author: josh weinflash # @created: 2019-04-05 # @purpose: 18-19 season animations # load libraries ---------------------------------------------------------- library("data.table") library("ggplot2") library("gganimate") source("scripts/help...
/scripts/animation.R
no_license
jweinflash/nba-dotplots
R
false
false
3,200
r
# file id ----------------------------------------------------------------- # @author: josh weinflash # @created: 2019-04-05 # @purpose: 18-19 season animations # load libraries ---------------------------------------------------------- library("data.table") library("ggplot2") library("gganimate") source("scripts/help...
summary.forest<-function(object, SpParams, detailed = FALSE, ...) { summaryBasalArea<-function(x, SpParams) { treeSpecies = SpParams$SpIndex[SpParams$GrowthForm=="Tree"] if(nrow(x$treeData)>0) { ft = factor(x$treeData$Species, levels=treeSpecies) tba = .treeBasalArea(x$treeData$N, x$treeData$D...
/R/summary.forest.R
no_license
ShengliHuang/medfate
R
false
false
4,517
r
summary.forest<-function(object, SpParams, detailed = FALSE, ...) { summaryBasalArea<-function(x, SpParams) { treeSpecies = SpParams$SpIndex[SpParams$GrowthForm=="Tree"] if(nrow(x$treeData)>0) { ft = factor(x$treeData$Species, levels=treeSpecies) tba = .treeBasalArea(x$treeData$N, x$treeData$D...
#!/home/statsadmin/R/bin/Rscript source('Step_0_init.R') args <- commandArgs() idx <- as.numeric(args[length(args)]) .libPaths('ysidi/lib') dt.miss <- readRDS(file = sprintf('dtwaldmcar05_%d.rds',idx)) #calculate type1 and power dt.miss <- dt.miss%>% dplyr::mutate(t.H0.m1 = map(t.H0.m, .f=function(df){ df%>% ...
/Step3_2_cca_miss/Old pgms/step_3_2_type_wald_missing_mcar_percent_05.R
no_license
yuliasidi/Binomial_PE_Progs
R
false
false
1,191
r
#!/home/statsadmin/R/bin/Rscript source('Step_0_init.R') args <- commandArgs() idx <- as.numeric(args[length(args)]) .libPaths('ysidi/lib') dt.miss <- readRDS(file = sprintf('dtwaldmcar05_%d.rds',idx)) #calculate type1 and power dt.miss <- dt.miss%>% dplyr::mutate(t.H0.m1 = map(t.H0.m, .f=function(df){ df%>% ...
library(ape) testtree <- read.tree("3846_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3846_0_unrooted.txt")
/codeml_files/newick_trees_processed/3846_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("3846_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3846_0_unrooted.txt")
test_SnpAnnotationDataFrame <- function() { # test object snpID <- 1:10 chrom <- c(rep(1L,5), 23:27) pos <- 101:110 rsID <- paste("rs", 1:10, sep="") A <- rep("A",10) B <- rep("B",10) x <- data.frame(snpID=snpID, chromosome=chrom, position=pos, rsID=rsID, alleleA=A, alleleB=B, stringsA...
/inst/unitTests/SnpAnnotationDataFrame_test.R
no_license
smgogarten/GWASTools
R
false
false
2,564
r
test_SnpAnnotationDataFrame <- function() { # test object snpID <- 1:10 chrom <- c(rep(1L,5), 23:27) pos <- 101:110 rsID <- paste("rs", 1:10, sep="") A <- rep("A",10) B <- rep("B",10) x <- data.frame(snpID=snpID, chromosome=chrom, position=pos, rsID=rsID, alleleA=A, alleleB=B, stringsA...
#Principal Component Analysis applied to IRIS dataset #input data before centering X2=as.matrix(iris[1:150, 1:4]) # centering X2[,1] = X2[,1] - mean(X2[,1]) # subtract the mean X2[,2] =X2[,2]-mean(X2[,2]) X2[,3] =X2[,3]-mean(X2[,3]) X2[,4] = X2[,4] - mean(X2[,4]) # Covariance matrix of X Sx2= var(X2) Sx2 #Finding eig...
/PCA.R
no_license
briceran/R-DSTools
R
false
false
2,192
r
#Principal Component Analysis applied to IRIS dataset #input data before centering X2=as.matrix(iris[1:150, 1:4]) # centering X2[,1] = X2[,1] - mean(X2[,1]) # subtract the mean X2[,2] =X2[,2]-mean(X2[,2]) X2[,3] =X2[,3]-mean(X2[,3]) X2[,4] = X2[,4] - mean(X2[,4]) # Covariance matrix of X Sx2= var(X2) Sx2 #Finding eig...
## Load/Read Data file data <- read.csv(file='hw1_data.csv') ## The above data file should be placed in working directory. ## To check current working directory we can use getwd() that will give you working directory path. ## For Example , > getwd() ## [1] "C:/Users/Lalit/Documents" ##what are the column names of the...
/Lingaiah_R_Script_Answers.R
no_license
lingaiah-ctu/Assignment-2
R
false
false
1,691
r
## Load/Read Data file data <- read.csv(file='hw1_data.csv') ## The above data file should be placed in working directory. ## To check current working directory we can use getwd() that will give you working directory path. ## For Example , > getwd() ## [1] "C:/Users/Lalit/Documents" ##what are the column names of the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GenVisR.R \docType{data} \name{cytoGeno} \alias{cytoGeno} \title{Cytogenetic banding dataset} \format{a data frame with 3207 observations and 6 variables} \usage{ data(cytoGeno) } \value{ Object of class data frame } \description{ A data set ...
/man/cytoGeno.Rd
permissive
pradyumnasagar/GenVisR
R
false
true
531
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GenVisR.R \docType{data} \name{cytoGeno} \alias{cytoGeno} \title{Cytogenetic banding dataset} \format{a data frame with 3207 observations and 6 variables} \usage{ data(cytoGeno) } \value{ Object of class data frame } \description{ A data set ...
require(readr) require(dplyr) require(prophet) require(ggplot2) # Загружаем исходные данные: dat <- read_csv(file = "data/bitcoin_closing_price.csv") # Удаляем наблюдения, которые старше 2016-01-01, и логарифмируем отклик # (логарифмирование поможет "бороться" с большой дисперсией в данных): clean_data <- dat %>% ...
/scripts/1_intro_to_prophet.R
permissive
ranalytics/intro_to_prophet
R
false
false
1,781
r
require(readr) require(dplyr) require(prophet) require(ggplot2) # Загружаем исходные данные: dat <- read_csv(file = "data/bitcoin_closing_price.csv") # Удаляем наблюдения, которые старше 2016-01-01, и логарифмируем отклик # (логарифмирование поможет "бороться" с большой дисперсией в данных): clean_data <- dat %>% ...
use_directory <- function(path, ignore = FALSE, pkg = ".") { pkg <- as.package(pkg) pkg_path <- file.path(pkg$path, path) if (file.exists(pkg_path)) { if (!is_dir(pkg_path)) { stop("`", path, "` exists but is not a directory.", call. = FALSE) } } else { usethis::ui_done("Creating {usethis::ui...
/R/helpers_file_system.R
permissive
benmarwick/rrtools
R
false
false
1,539
r
use_directory <- function(path, ignore = FALSE, pkg = ".") { pkg <- as.package(pkg) pkg_path <- file.path(pkg$path, path) if (file.exists(pkg_path)) { if (!is_dir(pkg_path)) { stop("`", path, "` exists but is not a directory.", call. = FALSE) } } else { usethis::ui_done("Creating {usethis::ui...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LLL.SETTINGS.R \docType{data} \name{LLL.SETTINGS} \alias{LLL.SETTINGS} \title{Design and trial settings used in the Lai, Lavori, Liao paper simulations} \description{ A list of design and trial design settings used for analysis and simulation...
/man/LLL.SETTINGS.Rd
no_license
bnaras/ASSISTant
R
false
true
1,809
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LLL.SETTINGS.R \docType{data} \name{LLL.SETTINGS} \alias{LLL.SETTINGS} \title{Design and trial settings used in the Lai, Lavori, Liao paper simulations} \description{ A list of design and trial design settings used for analysis and simulation...
frames = 10 for(i in 1:frames) { if(i < 10) { name = paste('000',i,'plot.png',sep = '') } if(i >= 10) { name = paste('00',i,'plot.png',sep = '') } x = seq(0,i,1) f.3 = dbinom(x, size = i, prob = 0.3) f.7 = dbinom(x, size = i, prob = 0,7) png(name) plot(x,f.3,type = 'h', xlim = c(0,frames), yli...
/SummerInern/week5 7:11:2016 - 7:15:2016/annimation example.R
no_license
yinzhuoding/Internship
R
false
false
401
r
frames = 10 for(i in 1:frames) { if(i < 10) { name = paste('000',i,'plot.png',sep = '') } if(i >= 10) { name = paste('00',i,'plot.png',sep = '') } x = seq(0,i,1) f.3 = dbinom(x, size = i, prob = 0.3) f.7 = dbinom(x, size = i, prob = 0,7) png(name) plot(x,f.3,type = 'h', xlim = c(0,frames), yli...
source("fe.R") source("helper.R") source("hyperspace.R") #x <- randomForest(x_train, y_train) ################################# Iteration 1 res = xgb.cv(xgb_params, dtrain, nrounds=700, nfold=3, early_stopping_rounds=15, print_every_n = 10...
/xgboost.R
no_license
vishawjeetd/Adult-Data-Set
R
false
false
4,934
r
source("fe.R") source("helper.R") source("hyperspace.R") #x <- randomForest(x_train, y_train) ################################# Iteration 1 res = xgb.cv(xgb_params, dtrain, nrounds=700, nfold=3, early_stopping_rounds=15, print_every_n = 10...
# Coursera EDA Week 1 # Plot 1 # Moaeed Sajid # # V1.0 4th Feb 2007 rm (list = ls()) dataurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" localZip <- "UciEpcDs.zip" if (file.exists(localZip)) { print("Local copy of file exists so will not download again") } else...
/plot1.R
no_license
moaeedsajid/Coursera_4EDA_P1PEPC
R
false
false
2,250
r
# Coursera EDA Week 1 # Plot 1 # Moaeed Sajid # # V1.0 4th Feb 2007 rm (list = ls()) dataurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" localZip <- "UciEpcDs.zip" if (file.exists(localZip)) { print("Local copy of file exists so will not download again") } else...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generes_to_heatmap.R \name{generes_to_heatmap} \alias{generes_to_heatmap} \title{Generate signature matrix} \usage{ generes_to_heatmap( generes, species = "human", naming_preference = -9, rda_path = "", make_names = TRUE, internal...
/man/generes_to_heatmap.Rd
no_license
NailouZhang/scMappR
R
false
true
1,773
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generes_to_heatmap.R \name{generes_to_heatmap} \alias{generes_to_heatmap} \title{Generate signature matrix} \usage{ generes_to_heatmap( generes, species = "human", naming_preference = -9, rda_path = "", make_names = TRUE, internal...
# ************************************************************************************* # # MALVEC Project Dashboard: dashboard for malaria data in Lao # Author: Olivier Celhay - olivier.celhay@gmail.com # # ui.R: Define the elements of the user interface for the Shiny # ************************************************...
/ui.R
no_license
ocelhay/MALVEC-App
R
false
false
9,802
r
# ************************************************************************************* # # MALVEC Project Dashboard: dashboard for malaria data in Lao # Author: Olivier Celhay - olivier.celhay@gmail.com # # ui.R: Define the elements of the user interface for the Shiny # ************************************************...
#' Make smoothed brownian bridge time series #' #' @param seed number of time series or complete seed as tibble #' @param length number of time points in the time series #' @param smoothing number of smoothing iterations #' @param endpause length of pause at the end #' @param na.rm logical, remove NAs from seed #' #' ...
/R/transform_meander.R
permissive
Maschette/jasmines
R
false
false
2,559
r
#' Make smoothed brownian bridge time series #' #' @param seed number of time series or complete seed as tibble #' @param length number of time points in the time series #' @param smoothing number of smoothing iterations #' @param endpause length of pause at the end #' @param na.rm logical, remove NAs from seed #' #' ...
#' Sampling parameter vectors function #' #' \code{nncalc} is a wrapper for the AMORE package functions #' #' @param x vector to sample from #' @param n number of samples to draw from x #' @param ... other arguments to pass to sample.int #' @return results of training an ANN resample <- function(x, n, ...) { x[samp...
/R/resample.r
no_license
kkyong77/RGLUEANN
R
false
false
354
r
#' Sampling parameter vectors function #' #' \code{nncalc} is a wrapper for the AMORE package functions #' #' @param x vector to sample from #' @param n number of samples to draw from x #' @param ... other arguments to pass to sample.int #' @return results of training an ANN resample <- function(x, n, ...) { x[samp...
install.packages("DTRreg") library(DTRreg) source("choose_alpha.R") expit <- function(x) exp(x)/(1+exp(x)) set.seed(543) # each scenario used a different seed. See README file. # gamma parameters following Chakraborty et al (2013) to control for irregularity in the generated data g <- matrix(NA, nrow = 9, ncol = 7) g...
/Simulations/R code/mnad_scenarioi_1.R
no_license
gabriellesimoneau/Rcode-Biostatistics
R
false
false
4,033
r
install.packages("DTRreg") library(DTRreg) source("choose_alpha.R") expit <- function(x) exp(x)/(1+exp(x)) set.seed(543) # each scenario used a different seed. See README file. # gamma parameters following Chakraborty et al (2013) to control for irregularity in the generated data g <- matrix(NA, nrow = 9, ncol = 7) g...
## Below is a pair of functions that cache the inverse of a matrix ## This function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv<-NULL set<-function(y) { x<<-y inv<<-NULL } get<-function()x setinv<-function(solve) ...
/cachematrix.R
no_license
zrx09/ProgrammingAssignment2
R
false
false
948
r
## Below is a pair of functions that cache the inverse of a matrix ## This function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv<-NULL set<-function(y) { x<<-y inv<<-NULL } get<-function()x setinv<-function(solve) ...
# Political Surveys Bias Voters' Self-Reported Economic Perceptions # Script 1: National Economic Perceptions # Jack Bailey # University of Manchester # jack.bailey@manchester.ac.uk # 1. Housekeeping --------------------------------------------------------- # The following code requires that you have first opened ...
/_scripts/001_national.R
no_license
jackobailey/surveys_bias_econ_percs
R
false
false
3,927
r
# Political Surveys Bias Voters' Self-Reported Economic Perceptions # Script 1: National Economic Perceptions # Jack Bailey # University of Manchester # jack.bailey@manchester.ac.uk # 1. Housekeeping --------------------------------------------------------- # The following code requires that you have first opened ...
#' Power analysis for TOST for independent t-test (Cohen's d). #' @param alpha alpha used for the test (e.g., 0.05) #' @param statistical_power desired power (e.g., 0.8) #' @param N sample size per group (e.g., 108) #' @param low_eqbound_d lower equivalence bounds (e.g., -0.5) expressed in standardized mean difference ...
/R/powerTOSTtwo.R
no_license
jonathon-love/TOSTER
R
false
false
3,199
r
#' Power analysis for TOST for independent t-test (Cohen's d). #' @param alpha alpha used for the test (e.g., 0.05) #' @param statistical_power desired power (e.g., 0.8) #' @param N sample size per group (e.g., 108) #' @param low_eqbound_d lower equivalence bounds (e.g., -0.5) expressed in standardized mean difference ...
p1 <- ggplot(mpg, aes(displ, hwy)) + geom_point() p <- p1 + xlim(2, 6)
/ggplot2/Scales/scale_continuous/example6.R
no_license
plotly/ssim_baselines
R
false
false
74
r
p1 <- ggplot(mpg, aes(displ, hwy)) + geom_point() p <- p1 + xlim(2, 6)
context("Models") n <- 100 m <- 10 p <- 5 k <- 2 X <- matrix(runif(n*p), n, p) X[sample.int(n*p, n*p*0.05)] <- NA X <- data.frame(X, as.factor(sample.int(k, n, replace=TRUE))) colnames(X) <- c(paste0("x", 1:p), "g") Y <- matrix(runif(n*m), n, m) Y[sample.int(n*m, n*m*0.05)] <- NA test_that("mlm functions as expecte...
/omics/tests/testthat/test-models.R
no_license
ingted/R-Examples
R
false
false
2,536
r
context("Models") n <- 100 m <- 10 p <- 5 k <- 2 X <- matrix(runif(n*p), n, p) X[sample.int(n*p, n*p*0.05)] <- NA X <- data.frame(X, as.factor(sample.int(k, n, replace=TRUE))) colnames(X) <- c(paste0("x", 1:p), "g") Y <- matrix(runif(n*m), n, m) Y[sample.int(n*m, n*m*0.05)] <- NA test_that("mlm functions as expecte...
library(readr) ### Name: read_log ### Title: Read common/combined log file into a tibble ### Aliases: read_log ### ** Examples read_log(readr_example("example.log"))
/data/genthat_extracted_code/readr/examples/read_log.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
173
r
library(readr) ### Name: read_log ### Title: Read common/combined log file into a tibble ### Aliases: read_log ### ** Examples read_log(readr_example("example.log"))
## makeCacheMatrix and cacheSolve are two functions that are used to store and cache the inverse of a matrix ## makeCacheMatrix creates a matrix object makeCacheMatrix <- function(x = matrix()) { var = NULL set <- function(y) { x <<- y var <<- NULL } get <- function () x SetInverse <- function(inverse) var ...
/cachematrix.R
no_license
ArtiRamdhanie/ProgrammingAssignment2
R
false
false
819
r
## makeCacheMatrix and cacheSolve are two functions that are used to store and cache the inverse of a matrix ## makeCacheMatrix creates a matrix object makeCacheMatrix <- function(x = matrix()) { var = NULL set <- function(y) { x <<- y var <<- NULL } get <- function () x SetInverse <- function(inverse) var ...
#' Beset Random Forest #' #' \code{beset_rf} is a wrapper to \code{\link[randomForest]{randomForest}} that #' estimates predictive performance of the random forest using repeated k-fold #' cross-validation. \code{beset_rf} insures that the correct arguments are #' provided to \code{\link[randomForest]{randomForest}} an...
/R/beset_rf.R
no_license
jashu/beset
R
false
false
10,990
r
#' Beset Random Forest #' #' \code{beset_rf} is a wrapper to \code{\link[randomForest]{randomForest}} that #' estimates predictive performance of the random forest using repeated k-fold #' cross-validation. \code{beset_rf} insures that the correct arguments are #' provided to \code{\link[randomForest]{randomForest}} an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Distances.R \name{polysmalldistmat} \alias{polysmalldistmat} \title{Compute distance matrix for a list of polygons} \usage{ polysmalldistmat( list.poly, delta, gradients = apply(cbind(c(0, 1), c(1, 0), c(1, 1), c(1, -1)), 2, function(x)...
/man/polysmalldistmat.Rd
no_license
DanielBonnery/Strategy
R
false
true
1,271
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Distances.R \name{polysmalldistmat} \alias{polysmalldistmat} \title{Compute distance matrix for a list of polygons} \usage{ polysmalldistmat( list.poly, delta, gradients = apply(cbind(c(0, 1), c(1, 0), c(1, 1), c(1, -1)), 2, function(x)...
1+100 1==2 x <- 1/40 log (x) x+x x <- 100 x y <- c(1, 4.5, 2.7, 9) z <- 1:5 # Create a vector of animals animals <- c("monkey", "rabbit", "dog") animals # Add 4 to each element in y y + 4 # Add text to animals paste("The animal is: ", animals) # inspect the type of an object typeof(y) typeof(animals) typeof(z) ...
/r-into.R
no_license
clroever/personal
R
false
false
4,693
r
1+100 1==2 x <- 1/40 log (x) x+x x <- 100 x y <- c(1, 4.5, 2.7, 9) z <- 1:5 # Create a vector of animals animals <- c("monkey", "rabbit", "dog") animals # Add 4 to each element in y y + 4 # Add text to animals paste("The animal is: ", animals) # inspect the type of an object typeof(y) typeof(animals) typeof(z) ...
library(dplyr) library(zoo) library(gtools) library(ggplot2) library(lubridate) library(reshape) setwd('C:/Users/Larry/Documents/Github/eighth_air_force_blog') claims_east = read.csv('luftwaffe_data/data/claims_east.txt') claims_west = read.csv('luftwaffe_data/data/claims_west.txt') claims_east = mutate(claims_east, ...
/luftwaffe_data/luftwaffe_analysis.R
no_license
samcarlos/eighth_air_force_blog
R
false
false
24,692
r
library(dplyr) library(zoo) library(gtools) library(ggplot2) library(lubridate) library(reshape) setwd('C:/Users/Larry/Documents/Github/eighth_air_force_blog') claims_east = read.csv('luftwaffe_data/data/claims_east.txt') claims_west = read.csv('luftwaffe_data/data/claims_west.txt') claims_east = mutate(claims_east, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ptk_pamchip_86402_array_layout_ptmsea} \alias{ptk_pamchip_86402_array_layout_ptmsea} \title{CDRL Complete mapping of peptides - used for ptm-sea (PTK PamChip 86402)} \format{ A data frame with x rows and x variable...
/man/ptk_pamchip_86402_array_layout_ptmsea.Rd
permissive
CogDisResLab/creedenzymatic
R
false
true
532
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ptk_pamchip_86402_array_layout_ptmsea} \alias{ptk_pamchip_86402_array_layout_ptmsea} \title{CDRL Complete mapping of peptides - used for ptm-sea (PTK PamChip 86402)} \format{ A data frame with x rows and x variable...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/limits.r \name{limits} \alias{limits} \title{Generate correct scale type for specified limits} \usage{ limits(lims, var) } \arguments{ \item{var}{name of variable} \item{limts}{vector of limits} } \description{ Generate correct scale...
/man/limits.Rd
no_license
sctyner/ggplot2
R
false
false
589
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/limits.r \name{limits} \alias{limits} \title{Generate correct scale type for specified limits} \usage{ limits(lims, var) } \arguments{ \item{var}{name of variable} \item{limts}{vector of limits} } \description{ Generate correct scale...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/batch_proc.R \name{read_win} \alias{read_win} \title{Function read_win} \usage{ read_win(projectpath, type, win) } \value{ DATA, SPECTRUM, VARID1, OBSID1, VARID2 } \description{ Function read_win }
/man/read_win.Rd
no_license
haihaba/gcms
R
false
true
276
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/batch_proc.R \name{read_win} \alias{read_win} \title{Function read_win} \usage{ read_win(projectpath, type, win) } \value{ DATA, SPECTRUM, VARID1, OBSID1, VARID2 } \description{ Function read_win }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/glm.nbp.1.MLE.R, R/glm.nbp.1.R \name{irls.nbp.1} \alias{irls.nbp.1} \alias{irls.nbp.1} \title{Estiamte the regression coefficients in an NBP GLM model} \usage{ irls.nbp.1(y, s, x, phi0, alpha1, beta0 = rep(NA, p), maxit = 50, tol.mu = 0.001...
/man/irls.nbp.1.Rd
no_license
jjlcathy/NBGOF
R
false
true
2,695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/glm.nbp.1.MLE.R, R/glm.nbp.1.R \name{irls.nbp.1} \alias{irls.nbp.1} \alias{irls.nbp.1} \title{Estiamte the regression coefficients in an NBP GLM model} \usage{ irls.nbp.1(y, s, x, phi0, alpha1, beta0 = rep(NA, p), maxit = 50, tol.mu = 0.001...
rforcecom.search <- function(session, queryString){ # Load packages require(XML) require(RCurl) # Retrieve XML via REST API h <- basicHeaderGatherer() t <- basicTextGatherer() endpointPath <- rforcecom.api.getSoslEndpoint(session['apiVersion']) queryString <- curlEscape(paste("FIND {", queryString, "}", sep="...
/OldVersions/RForcecom-0.3/RForcecom/R/rforcecom.search.R
permissive
oristides/RForcecom
R
false
false
1,531
r
rforcecom.search <- function(session, queryString){ # Load packages require(XML) require(RCurl) # Retrieve XML via REST API h <- basicHeaderGatherer() t <- basicTextGatherer() endpointPath <- rforcecom.api.getSoslEndpoint(session['apiVersion']) queryString <- curlEscape(paste("FIND {", queryString, "}", sep="...
#' Determines if a string of characters is a word. #' #' @param word string of letter #' #' @return string saying if the input is an actual word or not #' @export #' #' @examples #' is_word("hello") #' is_word("hbkjwfen") #' @import rvest #' @import dplyr #' @import xml2 is_word <- function(word){ link = paste0("htt...
/R/is_word.R
no_license
aaronsb123/scRabble
R
false
false
712
r
#' Determines if a string of characters is a word. #' #' @param word string of letter #' #' @return string saying if the input is an actual word or not #' @export #' #' @examples #' is_word("hello") #' is_word("hbkjwfen") #' @import rvest #' @import dplyr #' @import xml2 is_word <- function(word){ link = paste0("htt...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/funs_behavior.r \name{entropy} \alias{entropy} \title{Shannon entropy index on time at depth proportions} \usage{ entropy(x, base = 2, scale = FALSE) } \arguments{ \item{x}{a character vector naming the depth layers.} \item{base}{bas...
/man/entropy.Rd
permissive
SWotherspoon/rbl
R
false
false
964
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/funs_behavior.r \name{entropy} \alias{entropy} \title{Shannon entropy index on time at depth proportions} \usage{ entropy(x, base = 2, scale = FALSE) } \arguments{ \item{x}{a character vector naming the depth layers.} \item{base}{bas...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Logarithm of mixture supermartingale for the one- or two-sided normal #' mixture. #' @param s value of the underlying martingale #' @param v intrinsic time value #' @param v_opt intrinsic ti...
/r_package/R/RcppExports.R
permissive
gostevehoward/confseq
R
false
false
8,232
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Logarithm of mixture supermartingale for the one- or two-sided normal #' mixture. #' @param s value of the underlying martingale #' @param v intrinsic time value #' @param v_opt intrinsic ti...
## Private Class Methods for FLIC Class V2.1 source("DFM.R") source("ParametersClass.R") source("CommonChamber.R") require(stats) require(ggplot2) #####Treatment based functions###### ## Treatment based functions ## Divisions will create a separate graph for the cumulative PI (starting at range[0]) up ## to each of t...
/FLIC/TwoWellChamber.R
no_license
northstarpls/FLIC_R_Code
R
false
false
42,948
r
## Private Class Methods for FLIC Class V2.1 source("DFM.R") source("ParametersClass.R") source("CommonChamber.R") require(stats) require(ggplot2) #####Treatment based functions###### ## Treatment based functions ## Divisions will create a separate graph for the cumulative PI (starting at range[0]) up ## to each of t...