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
ELIAS GEBREMESKEL ################################################################################# ####### writing leap year R script setwd("M:/Geo_script") library(rasta) is.leap <- function (x){ if (x%%400 == 0){ output <- TRUE } else if (x%%100 == 0){ ...
/lesson2_E.R
no_license
eliasgit/eliasgit
R
false
false
540
r
ELIAS GEBREMESKEL ################################################################################# ####### writing leap year R script setwd("M:/Geo_script") library(rasta) is.leap <- function (x){ if (x%%400 == 0){ output <- TRUE } else if (x%%100 == 0){ ...
filter.GE <- function(E, quan=0.5, var.fun= 'var'){ # created by jp549 # "Wed Mar 7 11:24:49 2018" # An R function to filter a matrix or data.frame by variance # E is a matrix or data.frame of gene expression values # quan is the quantile you want to filter. Default = 0.5 ie retain 50% most variable genes...
/filter-by-variance.R
no_license
jp549/filterGE
R
false
false
935
r
filter.GE <- function(E, quan=0.5, var.fun= 'var'){ # created by jp549 # "Wed Mar 7 11:24:49 2018" # An R function to filter a matrix or data.frame by variance # E is a matrix or data.frame of gene expression values # quan is the quantile you want to filter. Default = 0.5 ie retain 50% most variable genes...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_hal.R \name{predict.hal} \alias{predict.hal} \title{predict.hal} \usage{ \method{predict}{hal}(object, newdata, bigDesign = FALSE, verbose = TRUE, chunks = 5000, s = ifelse(object$useMin, object$object$lambda.min, object$object$la...
/man/predict.hal.Rd
permissive
benkeser/halplus
R
false
true
1,160
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_hal.R \name{predict.hal} \alias{predict.hal} \title{predict.hal} \usage{ \method{predict}{hal}(object, newdata, bigDesign = FALSE, verbose = TRUE, chunks = 5000, s = ifelse(object$useMin, object$object$lambda.min, object$object$la...
### this script is for writing the OCBA procedure ### pOCBA<-function(budget,N,type="min",corr){ m<-vector() for(i in 1:N){ m[i]<-OCBA_new(budget=budget,type=type) } return(sum(m==corr)/N) } ### we still have to maintain the same pOCBA function. It is running smoothly with the other code ### OCBA_new<-fu...
/code/OCBA_new.R
no_license
amscsun/Adaptive-Resource-Allocation-using-Surrogate-Models-in-Ranking-and-Selection
R
false
false
2,277
r
### this script is for writing the OCBA procedure ### pOCBA<-function(budget,N,type="min",corr){ m<-vector() for(i in 1:N){ m[i]<-OCBA_new(budget=budget,type=type) } return(sum(m==corr)/N) } ### we still have to maintain the same pOCBA function. It is running smoothly with the other code ### OCBA_new<-fu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pagespeedonline_functions.R \name{rmNullObs} \alias{rmNullObs} \title{Recursively step down into list, removing all such objects} \usage{ rmNullObs(x) } \description{ Recursively step down into list, removing all such objects } \keyword{inter...
/googlepagespeedonlinev2.auto/man/rmNullObs.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
325
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pagespeedonline_functions.R \name{rmNullObs} \alias{rmNullObs} \title{Recursively step down into list, removing all such objects} \usage{ rmNullObs(x) } \description{ Recursively step down into list, removing all such objects } \keyword{inter...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aocp.R \name{aocp} \alias{aocp} \title{Formula for calculating the Average Oil Content Percentage (AOCP)} \usage{ aocp(ocs1, ocs2) } \arguments{ \item{ocs1}{Oil content sample1 percentage} \item{ocs2}{Oil content sample1 percentage} } \value...
/man/aocp.Rd
permissive
CIP-RIU/sbformula
R
false
true
1,065
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aocp.R \name{aocp} \alias{aocp} \title{Formula for calculating the Average Oil Content Percentage (AOCP)} \usage{ aocp(ocs1, ocs2) } \arguments{ \item{ocs1}{Oil content sample1 percentage} \item{ocs2}{Oil content sample1 percentage} } \value...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visualize.it.R \name{visualize.it} \alias{visualize.it} \title{Visualize's Processing Function} \usage{ visualize.it(dist = "norm", stat = c(0, 1), params = list(mu = 0, sd = 1), section = "lower", strict = c(0, 1)) } \arguments{ \item{dist...
/man/visualize.it.Rd
permissive
coatless-rpkg/visualize
R
false
true
3,243
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visualize.it.R \name{visualize.it} \alias{visualize.it} \title{Visualize's Processing Function} \usage{ visualize.it(dist = "norm", stat = c(0, 1), params = list(mu = 0, sd = 1), section = "lower", strict = c(0, 1)) } \arguments{ \item{dist...
### 最尤法によるガンマ分布のパラメーターの区間推定 ## ガンマ乱数から標本平均・標準偏差と平均の100(1-conf)%信頼区間の ## 上端・下端を計算する関数の作成 ## 以下注意: ガンマ関数のパラメータalphaと区別して信頼係数はconfを使用 library(stats4) # 関数mleを利用するため mle.gamma <- function(x, nu0=1, alpha0=1){ # 最尤推定で用いた定義を簡略化 n <- length(x) ll <- function(nu, alpha) suppressWarnings(-sum(dgamma(x, nu, alpha, log...
/docs/code/est-ci-mle.r
no_license
noboru-murata/sda
R
false
false
3,780
r
### 最尤法によるガンマ分布のパラメーターの区間推定 ## ガンマ乱数から標本平均・標準偏差と平均の100(1-conf)%信頼区間の ## 上端・下端を計算する関数の作成 ## 以下注意: ガンマ関数のパラメータalphaと区別して信頼係数はconfを使用 library(stats4) # 関数mleを利用するため mle.gamma <- function(x, nu0=1, alpha0=1){ # 最尤推定で用いた定義を簡略化 n <- length(x) ll <- function(nu, alpha) suppressWarnings(-sum(dgamma(x, nu, alpha, log...
## This function is not exported and is meant for internal use. ## It plots the sorted likelihood of connection for each individual, and ## shows the threshold (computed either as a quantile of the likelihoods, or ## as an absolute value). #' @importFrom graphics abline #' @importFrom graphics legend #' @import...
/R/plot_importation.R
no_license
cran/o2geosocial
R
false
false
1,448
r
## This function is not exported and is meant for internal use. ## It plots the sorted likelihood of connection for each individual, and ## shows the threshold (computed either as a quantile of the likelihoods, or ## as an absolute value). #' @importFrom graphics abline #' @importFrom graphics legend #' @import...
#' Create \code{testdata} folder. #' #' Save R objects to separate files \file{tests/testthat/testdata} in the #' `.rds` format. #' #' @param ... \R objects to save to the \file{testdata} dir. If empty, #' an empty directory is created. #' @param subdir `character` scalar. Subdirectory of \file{testdata} to save #' ...
/R/use_testdata.R
no_license
cran/testthis
R
false
false
5,001
r
#' Create \code{testdata} folder. #' #' Save R objects to separate files \file{tests/testthat/testdata} in the #' `.rds` format. #' #' @param ... \R objects to save to the \file{testdata} dir. If empty, #' an empty directory is created. #' @param subdir `character` scalar. Subdirectory of \file{testdata} to save #' ...
### GLOBAL DALY MAP ## required packages library(bd) library(FERG2015) library(maptools) library(maps) library(RColorBrewer) ## subregions #x <- FERG2015:::countryRegion_2015$WHOSubregion #table(x) ## world map dir <- "D:/Dropbox/__PDTF/MapTemplate_generalized_2013/Shapefiles/" map1 <- readShapeSpatial(paste0(dir, "...
/01_analyses/global-daly-map.R
no_license
brechtdv/melioidosis
R
false
false
2,322
r
### GLOBAL DALY MAP ## required packages library(bd) library(FERG2015) library(maptools) library(maps) library(RColorBrewer) ## subregions #x <- FERG2015:::countryRegion_2015$WHOSubregion #table(x) ## world map dir <- "D:/Dropbox/__PDTF/MapTemplate_generalized_2013/Shapefiles/" map1 <- readShapeSpatial(paste0(dir, "...
#' @param s shape parameter of the Gamma distribution for the lifetime process #' The smaller s, the stronger the heterogeneity of customer lifetimes. #' @param beta_0 scale parameter for the Gamma distribution for the lifetime process #' @param b scale parameter of the Gompertz distribution (constant across customers)...
/man-roxygen/template_params_ggomnbd.R
no_license
giancarlomirmillo/CLVTools
R
false
false
560
r
#' @param s shape parameter of the Gamma distribution for the lifetime process #' The smaller s, the stronger the heterogeneity of customer lifetimes. #' @param beta_0 scale parameter for the Gamma distribution for the lifetime process #' @param b scale parameter of the Gompertz distribution (constant across customers)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimension_reduction.R \name{constructHexNeighborhood} \alias{constructHexNeighborhood} \title{Construct the neighborhood of a hexagonal r*q matrix} \usage{ constructHexNeighborhood(r, q, even.layout = T) } \arguments{ \item{r}{The number of r...
/man/constructHexNeighborhood.Rd
permissive
jenzopr/singlecellutils
R
false
true
542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimension_reduction.R \name{constructHexNeighborhood} \alias{constructHexNeighborhood} \title{Construct the neighborhood of a hexagonal r*q matrix} \usage{ constructHexNeighborhood(r, q, even.layout = T) } \arguments{ \item{r}{The number of r...
#Produce pie charts summarising the hicup_deduplicator results #Launched by hicup_deduplicator args <- commandArgs(TRUE) outdir <- args[1] file <- args[2] data <- read.delim(file, header=FALSE, skip=1) for (i in 1:nrow(data)) { line <- data[i,] fileInSummary <- line[,1] uniques <- line[,3] cisClose <- line[,...
/code/code.hicseq-standard/hicapp/extrasoft/hicup/r_scripts/hicup_deduplicator.cis_trans_summary.r
no_license
NYU-BFX/hic-bench
R
false
false
1,175
r
#Produce pie charts summarising the hicup_deduplicator results #Launched by hicup_deduplicator args <- commandArgs(TRUE) outdir <- args[1] file <- args[2] data <- read.delim(file, header=FALSE, skip=1) for (i in 1:nrow(data)) { line <- data[i,] fileInSummary <- line[,1] uniques <- line[,3] cisClose <- line[,...
context("c") vec_with_lab = rep(1:2,3) var_lab(vec_with_lab) = "Fruits" val_lab(vec_with_lab) = c(Apple=1,Bananas=2) new_vec = c(vec_with_lab,vec_with_lab) expect_identical(var_lab(new_vec),var_lab(vec_with_lab)) expect_identical(val_lab(new_vec),val_lab(vec_with_lab)) ### context("c on labelled factors") a = facto...
/tests/testthat/test_methods.R
no_license
gdemin/expss
R
false
false
9,162
r
context("c") vec_with_lab = rep(1:2,3) var_lab(vec_with_lab) = "Fruits" val_lab(vec_with_lab) = c(Apple=1,Bananas=2) new_vec = c(vec_with_lab,vec_with_lab) expect_identical(var_lab(new_vec),var_lab(vec_with_lab)) expect_identical(val_lab(new_vec),val_lab(vec_with_lab)) ### context("c on labelled factors") a = facto...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DOE.R \name{DOE_Run_Repl_Conc} \alias{DOE_Run_Repl_Conc} \title{Generate the design of experiment for validation studies} \usage{ DOE_Run_Repl_Conc(nRun = 3, nreplicates = 2, ConcVect = c(0, 50, 100, 125, 150, 175, 200), Threshold = "NaN", ...
/man/DOE_Run_Repl_Conc.Rd
no_license
NicolasEDubois/anaval
R
false
true
1,511
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DOE.R \name{DOE_Run_Repl_Conc} \alias{DOE_Run_Repl_Conc} \title{Generate the design of experiment for validation studies} \usage{ DOE_Run_Repl_Conc(nRun = 3, nreplicates = 2, ConcVect = c(0, 50, 100, 125, 150, 175, 200), Threshold = "NaN", ...
# # # identify parties of countries with political alignment for all countries library(logger) library(tidyverse) library(lubridate) log_info("Calculating voting preferences...") party_raw <- read_rds(here::here("data", "filterbubble_anonymized.rds")) %>% # Duplicate name: SP in poland and Netherlands - SP is mea...
/scripts/40_partyaffiliation_score.R
no_license
lauraburbach/Filter-bubble-DE-NL
R
false
false
22,616
r
# # # identify parties of countries with political alignment for all countries library(logger) library(tidyverse) library(lubridate) log_info("Calculating voting preferences...") party_raw <- read_rds(here::here("data", "filterbubble_anonymized.rds")) %>% # Duplicate name: SP in poland and Netherlands - SP is mea...
/practice-5/chisq.r
no_license
XRFXRF/R
R
false
false
835
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataGen.R \name{qWeibull} \alias{qWeibull} \title{Quantile Function for the Weibull Distribution} \usage{ qWeibull(p, a = 1, l = 1) } \arguments{ \item{p}{Probability.} \item{a}{Shape.} \item{l}{Rate.} } \value{ Scalar quantile. } \descript...
/Temporal/man/qWeibull.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataGen.R \name{qWeibull} \alias{qWeibull} \title{Quantile Function for the Weibull Distribution} \usage{ qWeibull(p, a = 1, l = 1) } \arguments{ \item{p}{Probability.} \item{a}{Shape.} \item{l}{Rate.} } \value{ Scalar quantile. } \descript...
#' Create tables in dokuwiki format #' #' Prints the supplied data frame or matrix using Dokuwiki's table syntax, optionally copying the data to the clipboard (Mac OS X only). #' #' @param x A data.frame. #' @param headersep The separator used between entries in the header row. #' @param sep The separator used betwee...
/R/utils-tables.R
no_license
stephenturner/Tmisc
R
false
false
5,701
r
#' Create tables in dokuwiki format #' #' Prints the supplied data frame or matrix using Dokuwiki's table syntax, optionally copying the data to the clipboard (Mac OS X only). #' #' @param x A data.frame. #' @param headersep The separator used between entries in the header row. #' @param sep The separator used betwee...
sim2 <- function(n = 36){ id <- 1:n dyads <- t(combn(id, 2)) base_data <- data.frame(id1 = dyads[, 1], id2 = dyads[, 2]) rm(dyads) n_dyad <- nrow(base_data) n_friend <- round(n_dyad * 1/6) n_remain <- n_dyad - n_friend aux <- rep(1:3, length = n_remain) n_pos <- sum(aux == 1)...
/01_sim2.R
no_license
holgersr/Quantifying_Social_Complexity_Simulation_R_code
R
false
false
2,358
r
sim2 <- function(n = 36){ id <- 1:n dyads <- t(combn(id, 2)) base_data <- data.frame(id1 = dyads[, 1], id2 = dyads[, 2]) rm(dyads) n_dyad <- nrow(base_data) n_friend <- round(n_dyad * 1/6) n_remain <- n_dyad - n_friend aux <- rep(1:3, length = n_remain) n_pos <- sum(aux == 1)...
#predikcia po dni, setky FVE, 30 predchadzajucich, oblacnost normalne { library(RPostgreSQL) library(plyr) library(randomForest) library(snow) source('~/GitHub/baka/R source/presentation_tests/functions.R') } # cl <- makeCluster(4, type='SOCK') { write_results <- T fve <- c(1, 2, 3) tm_velkost <-...
/R source/presentation_tests/den_naj30_gho1.R
no_license
olimora/baka
R
false
false
5,042
r
#predikcia po dni, setky FVE, 30 predchadzajucich, oblacnost normalne { library(RPostgreSQL) library(plyr) library(randomForest) library(snow) source('~/GitHub/baka/R source/presentation_tests/functions.R') } # cl <- makeCluster(4, type='SOCK') { write_results <- T fve <- c(1, 2, 3) tm_velkost <-...
# #Uncomment to test # load('eptot.fear/debug.Rdata') # attach(designmat) # permutationNumber <- 1 # nperm <- 1000 # v=10000 packages <- list('nlme', 'clubSandwich', 'permute') loaded <- lapply(packages, library, character.only = TRUE) processVoxel <- function(v) { #This processVoxel function will produce the group...
/permute_results_s3/eptot.fear/perm.series.eptot.fear/permute_series_model.R
no_license
jflournoy/sea_np_models
R
false
false
5,227
r
# #Uncomment to test # load('eptot.fear/debug.Rdata') # attach(designmat) # permutationNumber <- 1 # nperm <- 1000 # v=10000 packages <- list('nlme', 'clubSandwich', 'permute') loaded <- lapply(packages, library, character.only = TRUE) processVoxel <- function(v) { #This processVoxel function will produce the group...
#' @title Check model assumptions #' @name check_assumptions #' @description \itemize{ #' \item \code{outliers()} detects outliers in (generalized) linear models. #' \item \code{heteroskedastic()} checks a linear model for (non-)constant error variance. #' \item \code{a...
/R/check_model_assumptions.R
no_license
guhjy/sjstats
R
false
false
15,178
r
#' @title Check model assumptions #' @name check_assumptions #' @description \itemize{ #' \item \code{outliers()} detects outliers in (generalized) linear models. #' \item \code{heteroskedastic()} checks a linear model for (non-)constant error variance. #' \item \code{a...
###Question 1 - Start up install.packages("dummies") library("dummies") Strt <- read.csv(file.choose()) View(Strt) attach(Strt) ###dummying the state column###### Strtup <- dummy.data.frame(Strt, names=c("State"), sep="_") View(Strtup) ####chageing the names according to my operation. colnames(Strtup) <- c("...
/Module_07_MLR_Q1_RCode.r
no_license
venumadhavgandhi/Datascience-concepts
R
false
false
1,605
r
###Question 1 - Start up install.packages("dummies") library("dummies") Strt <- read.csv(file.choose()) View(Strt) attach(Strt) ###dummying the state column###### Strtup <- dummy.data.frame(Strt, names=c("State"), sep="_") View(Strtup) ####chageing the names according to my operation. colnames(Strtup) <- c("...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eml.R \name{set_other_entities} \alias{set_other_entities} \title{This function is deprecated. See \link{pid_to_eml_entity}.} \usage{ set_other_entities(mn, path, pids) } \arguments{ \item{mn}{(MNode) The Member Node the objects exist on.} \...
/man/set_other_entities.Rd
permissive
robyngit/arcticdatautils
R
false
true
519
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eml.R \name{set_other_entities} \alias{set_other_entities} \title{This function is deprecated. See \link{pid_to_eml_entity}.} \usage{ set_other_entities(mn, path, pids) } \arguments{ \item{mn}{(MNode) The Member Node the objects exist on.} \...
empty_cells = c( 1:7, 10:27, 28:34, 40, 43:54, 55:61, 71:81, 82:88, 99:108, 109:115, 127:135, 136:142, 155:162, 163:168, 182:189, 190:195, 209:216, 217:221, 236:243, 244:248, 264:270, 271:273, 292:297, 298:299, 320:324, 325:326, 350:351, 352, 377, 379, 390:398, 403:405, 418:425, 427, 431:432, 442:459, 469:486, 495:513...
/empty_or_sampled.R
no_license
slugsrfun/holoSim
R
false
false
1,377
r
empty_cells = c( 1:7, 10:27, 28:34, 40, 43:54, 55:61, 71:81, 82:88, 99:108, 109:115, 127:135, 136:142, 155:162, 163:168, 182:189, 190:195, 209:216, 217:221, 236:243, 244:248, 264:270, 271:273, 292:297, 298:299, 320:324, 325:326, 350:351, 352, 377, 379, 390:398, 403:405, 418:425, 427, 431:432, 442:459, 469:486, 495:513...
# The main model. library(optparse) library(data.table) library(plyr) library(jlctree) source('util.R') option_list <- list(make_option(c("-N", "--Nsub"), type="numeric", default=500, help=""), make_option(c("-c", "--censor"), type="numeric", default=0.2, help=""), make_o...
/simulation/timevar_tree.R
no_license
zhangns07/jlctree
R
false
false
7,510
r
# The main model. library(optparse) library(data.table) library(plyr) library(jlctree) source('util.R') option_list <- list(make_option(c("-N", "--Nsub"), type="numeric", default=500, help=""), make_option(c("-c", "--censor"), type="numeric", default=0.2, help=""), make_o...
setwd("/Users/calypso/Dropbox/My Mac (glaroam2-185-117.wireless.gla.ac.uk)/Documents/Research MaxPlank/P1_propioception/R_tsvr_presentation/data") # Loading csv file meta <- read.csv('meta-data.csv',header=T,sep = ',',dec = '.',fill = TRUE, na.strings=c(""," ","NA"), stringsAsFactors=FALSE) # this is the file sheet as...
/R files/metadata-anlysis.R
no_license
BenjaminDupre/tsvr
R
false
false
1,614
r
setwd("/Users/calypso/Dropbox/My Mac (glaroam2-185-117.wireless.gla.ac.uk)/Documents/Research MaxPlank/P1_propioception/R_tsvr_presentation/data") # Loading csv file meta <- read.csv('meta-data.csv',header=T,sep = ',',dec = '.',fill = TRUE, na.strings=c(""," ","NA"), stringsAsFactors=FALSE) # this is the file sheet as...
#' @title Guess initial values for parameters of the binding model equations #' #' @description This function guesses initial values for \code{kd}, #' \code{signal_min} and \code{signal_max} (the parameters of the binding #' model equations), using the corrected FRET data. #' #' @param fret_corr A dataframe con...
/R/guess_parameters.R
permissive
TStas/rfret
R
false
false
1,533
r
#' @title Guess initial values for parameters of the binding model equations #' #' @description This function guesses initial values for \code{kd}, #' \code{signal_min} and \code{signal_max} (the parameters of the binding #' model equations), using the corrected FRET data. #' #' @param fret_corr A dataframe con...
\name{regRSM} \alias{regRSM.default} \alias{regRSM.formula} \alias{regRSM} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Random Subspace Method (RSM) for linear regression. } \description{ Performs Random Subspace Method (RSM) for high-dimensional linear regression to obtain variable i...
/man/regRSM.Rd
no_license
cran/regRSM
R
false
false
12,028
rd
\name{regRSM} \alias{regRSM.default} \alias{regRSM.formula} \alias{regRSM} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Random Subspace Method (RSM) for linear regression. } \description{ Performs Random Subspace Method (RSM) for high-dimensional linear regression to obtain variable i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mem-mcmc.r \name{mem_mcmc} \alias{mem_mcmc} \title{Fit the MEM Model using MCMC} \usage{ mem_mcmc( responses, size, name, p0 = 0.15, shape1 = 0.5, shape2 = 0.5, prior = diag(length(responses))/2 + matrix(0.5, nrow = length(respo...
/man/mem_mcmc.Rd
no_license
cran/basket
R
false
true
2,155
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mem-mcmc.r \name{mem_mcmc} \alias{mem_mcmc} \title{Fit the MEM Model using MCMC} \usage{ mem_mcmc( responses, size, name, p0 = 0.15, shape1 = 0.5, shape2 = 0.5, prior = diag(length(responses))/2 + matrix(0.5, nrow = length(respo...
"hazard" <- function(t,ObjFrailty){ if (ObjFrailty$typeof == 0){ nz <- ObjFrailty$n.knots the <- ObjFrailty$b[1:(nz+2)] * ObjFrailty$b[1:(nz+2)] zi <- ObjFrailty$zi res <- NULL if(class(ObjFrailty) == "jointPenal"){ nst <- ObjFrailty$n.strat + 1 # deces if((ObjFrailty$xR[,1] > t) || ((max...
/R/hazard.R
no_license
aminKMT/frailtypack
R
false
false
5,249
r
"hazard" <- function(t,ObjFrailty){ if (ObjFrailty$typeof == 0){ nz <- ObjFrailty$n.knots the <- ObjFrailty$b[1:(nz+2)] * ObjFrailty$b[1:(nz+2)] zi <- ObjFrailty$zi res <- NULL if(class(ObjFrailty) == "jointPenal"){ nst <- ObjFrailty$n.strat + 1 # deces if((ObjFrailty$xR[,1] > t) || ((max...
# TODO: Add comment # # Author: zhaos ############################################################################### #functions used plot_fastqScoreN<-function(rawData,rawDataN,pairEnd=1,doLegend=T,cex=1,res=150,ylim=range(cbind(rawData,rawDataN),na.rm=T),doSubgroup=T,filename="fastqScore.png",col=c(2,4,6,8)) { pal...
/source/fastq_plot_byPerl.R
no_license
IARCbioinfo/QC3
R
false
false
6,710
r
# TODO: Add comment # # Author: zhaos ############################################################################### #functions used plot_fastqScoreN<-function(rawData,rawDataN,pairEnd=1,doLegend=T,cex=1,res=150,ylim=range(cbind(rawData,rawDataN),na.rm=T),doSubgroup=T,filename="fastqScore.png",col=c(2,4,6,8)) { pal...
## code to prepare `geomChina` dataset goes here usethis::use_data(geomChina, overwrite = TRUE)
/data-raw/geomChina.R
permissive
sjbeckett/localcovid19now
R
false
false
97
r
## code to prepare `geomChina` dataset goes here usethis::use_data(geomChina, overwrite = TRUE)
\name{brains} \alias{brains} \docType{data} \title{Mammal brain weights} \description{ The data provided gives the average body weight in kilograms and the average brain weight in grams for sixty-two species of mammals.} \format{This data frame uses species names as row labels and contains the following columns: \des...
/man/brains.Rd
no_license
cran/alr3
R
false
false
713
rd
\name{brains} \alias{brains} \docType{data} \title{Mammal brain weights} \description{ The data provided gives the average body weight in kilograms and the average brain weight in grams for sixty-two species of mammals.} \format{This data frame uses species names as row labels and contains the following columns: \des...
# plot1.R # The code below loads data from xx, subsets the data based o a range of dates # and generates the first graph. library(RCurl) ## Check if file exists in expected path, if it doesn't download it and unzip it if (!file.exists("household_power_consumption.txt")) { fileURL = "https://d396qusza40orc.cloudfron...
/plot1.R
no_license
danielafernandez/ExData_Plotting1
R
false
false
1,337
r
# plot1.R # The code below loads data from xx, subsets the data based o a range of dates # and generates the first graph. library(RCurl) ## Check if file exists in expected path, if it doesn't download it and unzip it if (!file.exists("household_power_consumption.txt")) { fileURL = "https://d396qusza40orc.cloudfron...
library(rvest) library(xtable) args <- commandArgs(trailingOnly = TRUE) if (length(args) != 1) key <- "" else key <- paste("search/", args[1]) url <- paste("https://beta.techcrunch.com/", key, sep = "") content <- read_html(url) title <- content %>% html_nodes("h2.post-block__title") %>% html_text() %>% trimws() li...
/web_scrape_techcrunch.R
permissive
DahlitzFlorian/R-web-scraper
R
false
false
1,148
r
library(rvest) library(xtable) args <- commandArgs(trailingOnly = TRUE) if (length(args) != 1) key <- "" else key <- paste("search/", args[1]) url <- paste("https://beta.techcrunch.com/", key, sep = "") content <- read_html(url) title <- content %>% html_nodes("h2.post-block__title") %>% html_text() %>% trimws() li...
##prepare data for analysis in different scenarios ##code is from In Sock's test02.R ##load Achilles data library(CePa) A<-read.gct("/home/ijang/shRNA_database//Project_Achilles/Data//Achilles_102lines_gene_solutions.gct") B<-read.gct("/home/ijang/shRNA_database//Project_Achilles/Data//20110303_achilles2_PMAD_adjFC.rn...
/CODE/prepData.R
no_license
insockjang/CellEssentiality
R
false
false
3,489
r
##prepare data for analysis in different scenarios ##code is from In Sock's test02.R ##load Achilles data library(CePa) A<-read.gct("/home/ijang/shRNA_database//Project_Achilles/Data//Achilles_102lines_gene_solutions.gct") B<-read.gct("/home/ijang/shRNA_database//Project_Achilles/Data//20110303_achilles2_PMAD_adjFC.rn...
################################## # R profile file # Things you might want to change options(papersize="a4") # options(editor="notepad") # options(pager="internal") # R interactive prompt # options(prompt="> ") # options(continue="+ ") # to prefer Compiled HTML # help options(chmhelp=TRUE) # to prefer HTML help # o...
/.Rprofile
no_license
murattasdemir/work_config
R
false
false
1,062
rprofile
################################## # R profile file # Things you might want to change options(papersize="a4") # options(editor="notepad") # options(pager="internal") # R interactive prompt # options(prompt="> ") # options(continue="+ ") # to prefer Compiled HTML # help options(chmhelp=TRUE) # to prefer HTML help # o...
#source('JirapongC.r') #assignment 1: export stock data #create function to export stock data getStockData <- function(URL,stockName) { library(XML) wd <- getwd() tmpFullPath <- paste(wd,'/tmp',sep='') allTables <- readHTMLTable(URL) write.table(allTables[6],tmpFullPath,sep="|",quote = F) stock <- read.tabl...
/JirapongC.r
no_license
JirapongC/ABC_Assigment
R
false
false
2,418
r
#source('JirapongC.r') #assignment 1: export stock data #create function to export stock data getStockData <- function(URL,stockName) { library(XML) wd <- getwd() tmpFullPath <- paste(wd,'/tmp',sep='') allTables <- readHTMLTable(URL) write.table(allTables[6],tmpFullPath,sep="|",quote = F) stock <- read.tabl...
#!/usr/bin/env Rscript library(dplyr) #paths rest="./data/Resting/" act="./data/Activated/" abmd1="./data/A1/" abmd2="./data/R1/" abmd3="./data/A2/" abmd4="./data/R2/" #Reading data rest1=read.table(paste(rest,"Pore1.dat",sep=""),header=F) act1=read.table(paste(act,"Pore1.dat",sep=""),header=F) abmd1_1=read.table(pa...
/Figure4/Figure4-B.R
no_license
elbahnsi/ELIFE-Interplay-between-VSD-pore-and-membrane-lipids-in-electromechanical-coupling-in-HCN-channels
R
false
false
2,090
r
#!/usr/bin/env Rscript library(dplyr) #paths rest="./data/Resting/" act="./data/Activated/" abmd1="./data/A1/" abmd2="./data/R1/" abmd3="./data/A2/" abmd4="./data/R2/" #Reading data rest1=read.table(paste(rest,"Pore1.dat",sep=""),header=F) act1=read.table(paste(act,"Pore1.dat",sep=""),header=F) abmd1_1=read.table(pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sva.R \name{batchQC_num.sv} \alias{batchQC_num.sv} \title{Returns the number of surrogate variables to estimate in the model using a permutation based procedure} \usage{ batchQC_num.sv(data.matrix, modmatrix) } \arguments{ \item{data.matrix}...
/man/batchQC_num.sv.Rd
no_license
dfjenkins3/BatchQC
R
false
true
1,066
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sva.R \name{batchQC_num.sv} \alias{batchQC_num.sv} \title{Returns the number of surrogate variables to estimate in the model using a permutation based procedure} \usage{ batchQC_num.sv(data.matrix, modmatrix) } \arguments{ \item{data.matrix}...
## add FACS data to Seurat file # open FACS datafile havind exactly the same sample names as your Seurat file all_facs<-read.csv("..") keeping.order <- function(data, fn, ...) { col <- ".sortColumn" data[,col] <- 1:nrow(data) out <- fn(data, ...) if (!col %in% colnames(out)) stop("Ordering column not prese...
/6.Add_FACSdata.R
no_license
WernaUVenema/SingleCellCrohns
R
false
false
810
r
## add FACS data to Seurat file # open FACS datafile havind exactly the same sample names as your Seurat file all_facs<-read.csv("..") keeping.order <- function(data, fn, ...) { col <- ".sortColumn" data[,col] <- 1:nrow(data) out <- fn(data, ...) if (!col %in% colnames(out)) stop("Ordering column not prese...
#' Get list of Prefixes/ASNs for selected IP #' #' @param ip IP to lookup #' @param api_key your Qrator Radar API key; see [qr_api_key()]. #' @return list (use [qr_tidy()] to turn the raw API result into a data frame) #' @export #' @examples #' qr_tidy(qr_ip_lookup("17.253.144.10")) qr_ip_lookup <- function(ip, api_key...
/R/ip-lookup.R
permissive
hrbrmstr/qradar
R
false
false
707
r
#' Get list of Prefixes/ASNs for selected IP #' #' @param ip IP to lookup #' @param api_key your Qrator Radar API key; see [qr_api_key()]. #' @return list (use [qr_tidy()] to turn the raw API result into a data frame) #' @export #' @examples #' qr_tidy(qr_ip_lookup("17.253.144.10")) qr_ip_lookup <- function(ip, api_key...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logging.R \name{message_wrap} \alias{message_wrap} \title{Write a message that respects the line width} \usage{ message_wrap( x, width = options()$width - 2, prefix = "", color_text = NULL, color_prefix = color_text ) } \arguments{ ...
/man/message_wrap.Rd
permissive
tidymodels/tune
R
false
true
1,289
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logging.R \name{message_wrap} \alias{message_wrap} \title{Write a message that respects the line width} \usage{ message_wrap( x, width = options()$width - 2, prefix = "", color_text = NULL, color_prefix = color_text ) } \arguments{ ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307019711e+77, 1.0442506772823e-305, 1.22810536108214e+146, 4.12396251261199e-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))) result <- do.call(CNull:::communities_individual_b...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777124-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307019711e+77, 1.0442506772823e-305, 1.22810536108214e+146, 4.12396251261199e-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))) result <- do.call(CNull:::communities_individual_b...
#' Plot historical, future and the difference in occurence probability #' #' @param spp_out A sf::sfc object with spp occurence probability #' @param species Species to plot #' @param stat The statistic to plot #' @param year The future time-interval to plot #' @param scenario The future scenario to plot #' @param crs ...
/R/plot_spp_scenario.R
permissive
Vizzuality/vspt
R
false
false
4,052
r
#' Plot historical, future and the difference in occurence probability #' #' @param spp_out A sf::sfc object with spp occurence probability #' @param species Species to plot #' @param stat The statistic to plot #' @param year The future time-interval to plot #' @param scenario The future scenario to plot #' @param crs ...
########################################## # Analysis of single duckweed experiment # # Conducted by Ish - Summer 2013 # # # # Plotting data # # avgRGR # # avg within a replicate # ###################...
/code/stoichiometry - rgr - mean - PLOT.R
no_license
mccannecology/experiments-III
R
false
false
2,587
r
########################################## # Analysis of single duckweed experiment # # Conducted by Ish - Summer 2013 # # # # Plotting data # # avgRGR # # avg within a replicate # ###################...
## log(determinant) function # log_det = function(xmat) { # return(c(determinant(xmat, logarithm = T)$modulus)) # } # lil() : compute the log marginal likelihood ---------------------------------- # y : response vector (N x 1) # X : design matrix (N x d) # d : dimension of beta # prior : list contai...
/mvn_ig/mvn_ig_helper.R
no_license
echuu/mlike_approx
R
false
false
6,662
r
## log(determinant) function # log_det = function(xmat) { # return(c(determinant(xmat, logarithm = T)$modulus)) # } # lil() : compute the log marginal likelihood ---------------------------------- # y : response vector (N x 1) # X : design matrix (N x d) # d : dimension of beta # prior : list contai...
#testing out tidycensus and tigris #census api_key api_key <- 'd0263456f8db63ed8dc1084210d76f4cef099dd3' library(tidycensus) library(tigris) library(tidyverse) library(ggplot2) library(sf) library(ggalt) library(scales) census_api_key(api_key) Sys.getenv("CENSUS_API_KEY") options(tigris_use_cache = TRUE) #snap snap ...
/census_tigris.R
no_license
jberinst11/tidycensus_tigris
R
false
false
5,427
r
#testing out tidycensus and tigris #census api_key api_key <- 'd0263456f8db63ed8dc1084210d76f4cef099dd3' library(tidycensus) library(tigris) library(tidyverse) library(ggplot2) library(sf) library(ggalt) library(scales) census_api_key(api_key) Sys.getenv("CENSUS_API_KEY") options(tigris_use_cache = TRUE) #snap snap ...
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ---- eval = F----------------------------------------------------------- # drawManifolds(deriv, y0 = NULL, parameters = NULL, # tend = 1000, col = c("green", "red"...
/data/genthat_extracted_code/phaseR/vignettes/my-vignette.R
no_license
surayaaramli/typeRrh
R
false
false
13,378
r
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ---- eval = F----------------------------------------------------------- # drawManifolds(deriv, y0 = NULL, parameters = NULL, # tend = 1000, col = c("green", "red"...
#' Height data for N=100 athletes #' #' Height data for N=50 males and N=50 females #' #' @format A data frame with 100 rows and 2 variables: #' \describe{ #' \item{Gender}{Factor indicating gender of the athletes. Two levels "Male" and "Female"} #' \item{Height}{Numeric value indicating height in cm units} #' } #'...
/R/data-height.R
permissive
mladenjovanovic/bmbstats
R
false
false
360
r
#' Height data for N=100 athletes #' #' Height data for N=50 males and N=50 females #' #' @format A data frame with 100 rows and 2 variables: #' \describe{ #' \item{Gender}{Factor indicating gender of the athletes. Two levels "Male" and "Female"} #' \item{Height}{Numeric value indicating height in cm units} #' } #'...
getwd() setwd("C:/Users/Documents") victims <- readLines(choose.files()) victims df <- as.data.frame (victims) df class(df) length(df) nrow(df) ncol(df) dim(df) str(df) text <- victims[!comments] text comments_grepl <- grepl("^%", victims) ?grepl comments_grepl comments_grep <- grep ("^%", victims...
/EDA/R code 2.R
no_license
Rashmi1404/Data-Science-R-code
R
false
false
1,582
r
getwd() setwd("C:/Users/Documents") victims <- readLines(choose.files()) victims df <- as.data.frame (victims) df class(df) length(df) nrow(df) ncol(df) dim(df) str(df) text <- victims[!comments] text comments_grepl <- grepl("^%", victims) ?grepl comments_grepl comments_grep <- grep ("^%", victims...
read_final_data <- function(worker_type = 'agriculture'){ require(readxl) require(readr) # Define the names of the different worker types in the files wt <- ifelse(worker_type == 'agriculture', 'Agric', ifelse(worker_type == 'factory', 'Factory', ...
/lib/read_final_data.R
no_license
joebrew/xinavane
R
false
false
3,398
r
read_final_data <- function(worker_type = 'agriculture'){ require(readxl) require(readr) # Define the names of the different worker types in the files wt <- ifelse(worker_type == 'agriculture', 'Agric', ifelse(worker_type == 'factory', 'Factory', ...
plot_matrix <- function(dataset, print_plot = TRUE, save_plot = FALSE, imputations = NULL) { require(tidyverse) require(ggplot2) require(GGally) plots <- vector(mode = "list", length = 4) position <- matrix(1:(ncol(dataset$original)^2), ncol(dataset$original), ncol(dataset$original), byrow = TRUE...
/plot_matrix.R
no_license
pml204/Mclust_try
R
false
false
3,955
r
plot_matrix <- function(dataset, print_plot = TRUE, save_plot = FALSE, imputations = NULL) { require(tidyverse) require(ggplot2) require(GGally) plots <- vector(mode = "list", length = 4) position <- matrix(1:(ncol(dataset$original)^2), ncol(dataset$original), ncol(dataset$original), byrow = TRUE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReturnOCS.R \name{ReturnOCS} \alias{ReturnOCS} \title{Gives operating characteristics of phase 123 and conventional design.} \usage{ ReturnOCS(Results, Means, CMu, Delta, Hyp) } \arguments{ \item{Results}{List containing phase 123 an...
/fuzzedpackages/Phase123/man/ReturnOCS.Rd
no_license
akhikolla/testpackages
R
false
true
1,497
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReturnOCS.R \name{ReturnOCS} \alias{ReturnOCS} \title{Gives operating characteristics of phase 123 and conventional design.} \usage{ ReturnOCS(Results, Means, CMu, Delta, Hyp) } \arguments{ \item{Results}{List containing phase 123 an...
# loading the R Plumber library library(plumber) # creating a plumber instance by getting connected to the API defined in the "keywordAssoc_API.R" file. plumber_instance = plumb("keywordAssoc_API.R") # starting the plumber on certain port and host plumber_instance$run(port = 5762, host = "0.0.0.0")
/caller.R
no_license
RsoltanGit/kwa
R
false
false
301
r
# loading the R Plumber library library(plumber) # creating a plumber instance by getting connected to the API defined in the "keywordAssoc_API.R" file. plumber_instance = plumb("keywordAssoc_API.R") # starting the plumber on certain port and host plumber_instance$run(port = 5762, host = "0.0.0.0")
# Source of data for this project: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # This R script does the following: # 1. Merges the training and the test sets to create one data set. tmp1 <- read.table("train/X_train.txt") tmp2 <- read.table("test/X_test.txt") X <- rbind(tmp...
/run_analysis.R
no_license
catarinapimpao/GettingCleaningDataProject
R
false
false
2,003
r
# Source of data for this project: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # This R script does the following: # 1. Merges the training and the test sets to create one data set. tmp1 <- read.table("train/X_train.txt") tmp2 <- read.table("test/X_test.txt") X <- rbind(tmp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RMariaDBHelper.R \name{db_read_conf} \alias{db_read_conf} \title{Read Configuration} \usage{ db_read_conf(conf_file = "~/.db_conf.yml") } \arguments{ \item{conf_file}{(character) Configuration file to read/write. (Default: "~/.db_conf.yml")} ...
/man/db_read_conf.Rd
permissive
deohs/RMariaDBHelper
R
false
true
582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RMariaDBHelper.R \name{db_read_conf} \alias{db_read_conf} \title{Read Configuration} \usage{ db_read_conf(conf_file = "~/.db_conf.yml") } \arguments{ \item{conf_file}{(character) Configuration file to read/write. (Default: "~/.db_conf.yml")} ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_auth.R \name{auth-config} \alias{auth-config} \alias{drive_api_key} \alias{drive_oauth_app} \title{Retrieve OAuth app or API key} \usage{ drive_api_key() drive_oauth_app() } \value{ An \code{\link[httr:oauth_app]{httr::oauth_app()}} or...
/man/auth-config.Rd
no_license
zuiaishuijiangui/googledrive
R
false
true
1,042
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_auth.R \name{auth-config} \alias{auth-config} \alias{drive_api_key} \alias{drive_oauth_app} \title{Retrieve OAuth app or API key} \usage{ drive_api_key() drive_oauth_app() } \value{ An \code{\link[httr:oauth_app]{httr::oauth_app()}} or...
options(na.action=na.exclude) # preserve missings options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type library(survival) # # Test out subscripting in the case of a coxph survival curve # aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) fit <- coxph(Surv(time, status) ~ age ...
/R-3.1.0/library/survival/tests/coxsurv.R
permissive
ArcherCraftStore/ArcherVMPeridot
R
false
false
2,858
r
options(na.action=na.exclude) # preserve missings options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type library(survival) # # Test out subscripting in the case of a coxph survival curve # aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) fit <- coxph(Surv(time, status) ~ age ...
expected_values[[runno]] <- list(lik = c(-11870.83, 23751.66, 23780.31), param = c(1.3862, 4.2682, 0.20018), stdev_param = c(0.3094, 0.27964, NA), sigma = c(prop.err = 0.20018), parFixedDf = structure(list(Estimate = c(lCl = 1.38618790537231, lVc = 4.26817039746522, prop.err = 0.200181533914815), SE = c(lCl ...
/inst/models/values-1.1.1.3-U012_saem-unix.R
no_license
nlmixrdevelopment/nlmixr.examples
R
false
false
1,513
r
expected_values[[runno]] <- list(lik = c(-11870.83, 23751.66, 23780.31), param = c(1.3862, 4.2682, 0.20018), stdev_param = c(0.3094, 0.27964, NA), sigma = c(prop.err = 0.20018), parFixedDf = structure(list(Estimate = c(lCl = 1.38618790537231, lVc = 4.26817039746522, prop.err = 0.200181533914815), SE = c(lCl ...
#' run_tsne #' #' @param profile_dt Tidy data.table of profile information. As returned by seqsetvis::ssvFetchBam. #' @param perplexity perplexity value for t-SNE. Passed to Rtsne::Rtsne. #' @param n_cores Number of threads for running t-SNE. #' @param high_topright If TRUE, flip tx/ty as needed such that most points ...
/R/functions_tsne.R
no_license
jrboyd/seqtsne
R
false
false
25,989
r
#' run_tsne #' #' @param profile_dt Tidy data.table of profile information. As returned by seqsetvis::ssvFetchBam. #' @param perplexity perplexity value for t-SNE. Passed to Rtsne::Rtsne. #' @param n_cores Number of threads for running t-SNE. #' @param high_topright If TRUE, flip tx/ty as needed such that most points ...
create_report <- function(imputation_list, max_nway, missing_col, df_observed){ # Create report from an imputed datasets # Coverage, rmse, mae, and distribution comparison with the population data # Calculate coverage source("../../utils/coverage.R") cat('##### Coverage ##### \n') for (i in 1:max_nway) {...
/utils/create_report.R
no_license
ChayutWo/Nonparam-oridinal-nominal
R
false
false
1,208
r
create_report <- function(imputation_list, max_nway, missing_col, df_observed){ # Create report from an imputed datasets # Coverage, rmse, mae, and distribution comparison with the population data # Calculate coverage source("../../utils/coverage.R") cat('##### Coverage ##### \n') for (i in 1:max_nway) {...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geo_functions.R \name{get_gds_gse_ids} \alias{get_gds_gse_ids} \alias{get_gpl_related_gds} \title{Get platform GSE ids which have entries in GEO datasets} \usage{ get_gds_gse_ids(gpl_id) get_gpl_related_gds(gpl_id, min_sample_num = NULL, m...
/man/get_gds_gse_ids.Rd
no_license
pedrostrusso/cemitooldb
R
false
true
599
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geo_functions.R \name{get_gds_gse_ids} \alias{get_gds_gse_ids} \alias{get_gpl_related_gds} \title{Get platform GSE ids which have entries in GEO datasets} \usage{ get_gds_gse_ids(gpl_id) get_gpl_related_gds(gpl_id, min_sample_num = NULL, m...
####################K-fold cross validation################ rice=read.csv("D:\\project\\Rice production(project).csv") a=rice$id id1=as.factor(a) rice1=cbind(rice,id1) rice2=rice1[,-c(1,2)] set.seed(2019) library(caret) model_cv <- train(price ~ ., data = rice2,method="lm", ...
/k_fold cross validation.R
no_license
PoojabJadhav/Project
R
false
false
1,807
r
####################K-fold cross validation################ rice=read.csv("D:\\project\\Rice production(project).csv") a=rice$id id1=as.factor(a) rice1=cbind(rice,id1) rice2=rice1[,-c(1,2)] set.seed(2019) library(caret) model_cv <- train(price ~ ., data = rice2,method="lm", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{graphs_4_0} \alias{graphs_4_0} \title{Admixture graphs of 4 leaves and 0 admixture events compressed into vectors} \format{A data frame with 3 rows and 49 variables.} \source{ Calculated using \code{\link{all_graph...
/man/graphs_4_0.Rd
no_license
guzhongru/admixture_graph
R
false
true
542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{graphs_4_0} \alias{graphs_4_0} \title{Admixture graphs of 4 leaves and 0 admixture events compressed into vectors} \format{A data frame with 3 rows and 49 variables.} \source{ Calculated using \code{\link{all_graph...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{rest_on_table} \alias{rest_on_table} \title{A short snippet of raw accelerometer signal from a device resting on a table.} \format{ A data frame with 5000 rows and 4 variables: \describe{ \item{HEADER_TI...
/man/rest_on_table.Rd
no_license
cran/MIMSunit
R
false
true
829
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{rest_on_table} \alias{rest_on_table} \title{A short snippet of raw accelerometer signal from a device resting on a table.} \format{ A data frame with 5000 rows and 4 variables: \describe{ \item{HEADER_TI...
## ######################################################## ## ## Testing for condional independence in a dataframe ## <x> : dataframe ## <set>: NULL, a vector or a formula ## ## ######################################################## ciTest_df <- function(x, set=NULL,...){ if (is.null(set)){ set <...
/gRim/R/ciTest_dataframe.R
no_license
ingted/R-Examples
R
false
false
1,600
r
## ######################################################## ## ## Testing for condional independence in a dataframe ## <x> : dataframe ## <set>: NULL, a vector or a formula ## ## ######################################################## ciTest_df <- function(x, set=NULL,...){ if (is.null(set)){ set <...
# Script for hurricane exposure ######################################################################## #find_combined_events find_combined_events <- function(first_date = NULL, last_date = NULL, ts_only = FALSE, dist_limit = NULL, storm = NULL){ if(!is.null(first_date) & !is.null(...
/script_for_hurr_exposure/create_storm_db_data.R
no_license
geanders/noaastormevents
R
false
false
11,137
r
# Script for hurricane exposure ######################################################################## #find_combined_events find_combined_events <- function(first_date = NULL, last_date = NULL, ts_only = FALSE, dist_limit = NULL, storm = NULL){ if(!is.null(first_date) & !is.null(...
###################################################### ###################################################### ### ### ### Species Richness Function ### ### ### ### This script calculates the species richn...
/scripts/species_richness/species_richness_function.R
no_license
Doi90/JSDM_Prediction
R
false
false
2,031
r
###################################################### ###################################################### ### ### ### Species Richness Function ### ### ### ### This script calculates the species richn...
setwd("D:/Users/joaom/Documents/MEI/Projeto/MEI/Projeto2-HP"); data = read.table(file="all_results.in", header=TRUE); aggregate(data[, 2:3], list(data$ALGORITHM), mean); aggregate(data[, 2:3], list(data$ALGORITHM), sd); cills = read.table(file="confidence_interval_LLS.in", header=TRUE); add.error.bars <- function(X,Y,S...
/Projeto2-HP/HT.R
no_license
rafa98neves/MEI
R
false
false
598
r
setwd("D:/Users/joaom/Documents/MEI/Projeto/MEI/Projeto2-HP"); data = read.table(file="all_results.in", header=TRUE); aggregate(data[, 2:3], list(data$ALGORITHM), mean); aggregate(data[, 2:3], list(data$ALGORITHM), sd); cills = read.table(file="confidence_interval_LLS.in", header=TRUE); add.error.bars <- function(X,Y,S...
#' @title Simulation of the F-distribution #' @description Simulation of the F-distribution #' @usage fdist.sim(nu1 = 5, nu2 = 5, N = 10000, ng = 250, seed = 9857, xp = 1:9, dig = 4) #' @param sig1 Standard deviation of the first population #' @param sig2 Standard deviation of the second population #' @param n1 Sample ...
/R/fdist.sim.R
permissive
jhk0530/Rstat
R
false
false
2,025
r
#' @title Simulation of the F-distribution #' @description Simulation of the F-distribution #' @usage fdist.sim(nu1 = 5, nu2 = 5, N = 10000, ng = 250, seed = 9857, xp = 1:9, dig = 4) #' @param sig1 Standard deviation of the first population #' @param sig2 Standard deviation of the second population #' @param n1 Sample ...
library(reshape2) file <- "getdata_dataset.zip" ## Download and extract data if (!file.exists(file)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fileURL, file) } if (!file.exists("UCI HAR Dataset")) { unzip(...
/run_analysis.R
no_license
reiderlz91/Getting_and_cleaning_data
R
false
false
2,167
r
library(reshape2) file <- "getdata_dataset.zip" ## Download and extract data if (!file.exists(file)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fileURL, file) } if (!file.exists("UCI HAR Dataset")) { unzip(...
library(shiny) library(rCharts) shinyUI( navbarPage("Benchmarking read aligners", tabPanel("Plot", sidebarPanel( selectInput("dataset", "Dataset:", list("Illumina (artificial)", ...
/shiny/ui.R
no_license
christianbioinf/Devdataprod_CP
R
false
false
2,040
r
library(shiny) library(rCharts) shinyUI( navbarPage("Benchmarking read aligners", tabPanel("Plot", sidebarPanel( selectInput("dataset", "Dataset:", list("Illumina (artificial)", ...
library(atSNP) library(testthat) data(example) if(.Platform$OS.type == "unix") { registerDoParallel(4) } else { registerDoParallel(cl <- makeCluster(4)) } trans_mat <- matrix(rep(snpInfo$prior, each = 4), nrow = 4) id <- 1 test_pwm <- motif_library[[id]] scores <- as.matrix(motif_scores$motif.scores[motif == name...
/tests/test_diff.R
no_license
kiminsigne-ucla/atSNP_modified
R
false
false
12,634
r
library(atSNP) library(testthat) data(example) if(.Platform$OS.type == "unix") { registerDoParallel(4) } else { registerDoParallel(cl <- makeCluster(4)) } trans_mat <- matrix(rep(snpInfo$prior, each = 4), nrow = 4) id <- 1 test_pwm <- motif_library[[id]] scores <- as.matrix(motif_scores$motif.scores[motif == name...
library(readr) library(tidyr) library(R2jags) # Import data ------------------------------------------------------------- cleague2017 <- read_csv("first-post-data.csv") # variable names have spaces (i.e. <Home Team>) and this bothers me IMMENSLY, so: names(cleague2017) <- c("Round", "Date", "Location", "HomeTeam", ...
/first-post.R
no_license
nibedeeta/blog-posts
R
false
false
17,606
r
library(readr) library(tidyr) library(R2jags) # Import data ------------------------------------------------------------- cleague2017 <- read_csv("first-post-data.csv") # variable names have spaces (i.e. <Home Team>) and this bothers me IMMENSLY, so: names(cleague2017) <- c("Round", "Date", "Location", "HomeTeam", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/warp_f_gamma.R \name{warp_f_gamma} \alias{warp_f_gamma} \title{Warp Function} \usage{ warp_f_gamma(f, time, gamma) } \arguments{ \item{f}{vector function} \item{time}{time} \item{gamma}{vector warping function} } \value{ fnew warped functio...
/man/warp_f_gamma.Rd
no_license
Wesserg/fdasrvf_R
R
false
true
908
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/warp_f_gamma.R \name{warp_f_gamma} \alias{warp_f_gamma} \title{Warp Function} \usage{ warp_f_gamma(f, time, gamma) } \arguments{ \item{f}{vector function} \item{time}{time} \item{gamma}{vector warping function} } \value{ fnew warped functio...
#---------------------------------------------------------------- # Environment Set-up #---------------------------------------------------------------- library(xgboost) setwd("/home/rstudio/Dropbox/Public/Springleaf") subversion <- 1 version <- 3 #---------------------------------------------------------------- # Dat...
/Benchmark Scripts/Seed/test_submission_seed_3.R
no_license
vikasnitk85/SpringleafMarketingesponse
R
false
false
2,432
r
#---------------------------------------------------------------- # Environment Set-up #---------------------------------------------------------------- library(xgboost) setwd("/home/rstudio/Dropbox/Public/Springleaf") subversion <- 1 version <- 3 #---------------------------------------------------------------- # Dat...
#----------------------------------------------------------------------- # Pacotes library(gmailr) library(readODS) library(dplyr) library(stringr) library(purrr) #----------------------------------------------------------------------- # Functions enviar_email <- function(name, email, message, ...) { first <- str_...
/cobranca/sendmail.R
no_license
esalq-ppgeea/encontro2018
R
false
false
1,563
r
#----------------------------------------------------------------------- # Pacotes library(gmailr) library(readODS) library(dplyr) library(stringr) library(purrr) #----------------------------------------------------------------------- # Functions enviar_email <- function(name, email, message, ...) { first <- str_...
library("testthat") library("testthatsomemore") library("mungebits2") test_check("mungebits2")
/tests/test-all.R
permissive
syberia/mungebits2
R
false
false
95
r
library("testthat") library("testthatsomemore") library("mungebits2") test_check("mungebits2")
#' @include with_.R # lib ------------------------------------------------------------------------ set_libpaths <- function(paths, action = "replace") { paths <- normalizePath(paths, mustWork = TRUE) old <- .libPaths() paths <- merge_new(old, paths, action) .libPaths(paths) invisible(old) } set_temp_libp...
/R/libpaths.R
no_license
ruanribeiros/withr
R
false
false
1,464
r
#' @include with_.R # lib ------------------------------------------------------------------------ set_libpaths <- function(paths, action = "replace") { paths <- normalizePath(paths, mustWork = TRUE) old <- .libPaths() paths <- merge_new(old, paths, action) .libPaths(paths) invisible(old) } set_temp_libp...
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param ... PARAM_DESCRIPTION #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @examples #' \dontrun{ #' if (interactive()) { #' # EXAMPLE1 #' } #' } #' @rdname load_config #' @export load_config <- function(...) { ##### Overloading load_config to ...
/mbg/mbg_core_code/mbg_central/LBDCore/R/load_config.R
no_license
The-Oxford-GBD-group/typhi_paratyphi_modelling_code
R
false
false
477
r
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param ... PARAM_DESCRIPTION #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @examples #' \dontrun{ #' if (interactive()) { #' # EXAMPLE1 #' } #' } #' @rdname load_config #' @export load_config <- function(...) { ##### Overloading load_config to ...
\name{canvasXpress} \alias{canvasXpress} \title{canvasXpress Visualization} \usage{ canvasXpress(data, smpAnnot=smpAnnot, varAnnot=varAnnot, nodeData=nodeData, edgeData=edgeData, vennData=vennData, ..., graphType='Bar', events=NULL, afterRender=NULL, width=600, height=400) } \arguments{ \item{data}{A data frame or a ma...
/man/canvasXpress.Rd
no_license
freestatman/canvasXpress
R
false
false
5,092
rd
\name{canvasXpress} \alias{canvasXpress} \title{canvasXpress Visualization} \usage{ canvasXpress(data, smpAnnot=smpAnnot, varAnnot=varAnnot, nodeData=nodeData, edgeData=edgeData, vennData=vennData, ..., graphType='Bar', events=NULL, afterRender=NULL, width=600, height=400) } \arguments{ \item{data}{A data frame or a ma...
\name{CommunityClimateStatistics-class} \Rdversion{1.1} \docType{class} \alias{CommunityClimateStatistics-class} \title{Class \code{"CommunityClimateStatistics"}} \description{ A class used to compactly store output of community climate analysis. Can be summarized and plotted. } \section{Objects from the Class}{ Objec...
/man/CommunityClimateStatistics-class.Rd
no_license
bblonder/comclim
R
false
false
1,055
rd
\name{CommunityClimateStatistics-class} \Rdversion{1.1} \docType{class} \alias{CommunityClimateStatistics-class} \title{Class \code{"CommunityClimateStatistics"}} \description{ A class used to compactly store output of community climate analysis. Can be summarized and plotted. } \section{Objects from the Class}{ Objec...
scrPID.um<-function (n, X, y, M, mmax, obsmod = c("pois", "bern"),niters, npics, xlims, ylims, inits, delta ) { obsmod <- match.arg(obsmod) J <- nrow(n) K <- ncol(n) S <- inits$S D <- e2dist(S, X) sigma <- inits$sigma lam0 <- inits$lam0 lam <- lam0 * exp(-(D * D)/(2 * si...
/Rpackage/scrbook/R/scrPID.um.R
no_license
jaroyle/scrbook
R
false
false
7,729
r
scrPID.um<-function (n, X, y, M, mmax, obsmod = c("pois", "bern"),niters, npics, xlims, ylims, inits, delta ) { obsmod <- match.arg(obsmod) J <- nrow(n) K <- ncol(n) S <- inits$S D <- e2dist(S, X) sigma <- inits$sigma lam0 <- inits$lam0 lam <- lam0 * exp(-(D * D)/(2 * si...
# This R Script does the following # Step 1: Merges the training and the test sets to create one data set. # Step 2: Extracts only the measurements on the mean and standard deviation for each measurement. # Step 3: Uses descriptive activity names to name the activities in the data set # Step 4: Labels the data set ...
/run_analysis.R
no_license
thakkarn/Getting-and-Cleaning-Data
R
false
false
4,065
r
# This R Script does the following # Step 1: Merges the training and the test sets to create one data set. # Step 2: Extracts only the measurements on the mean and standard deviation for each measurement. # Step 3: Uses descriptive activity names to name the activities in the data set # Step 4: Labels the data set ...
testlist <- list(hi = 0, lo = 1.16054871011417e-315, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610044663-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
126
r
testlist <- list(hi = 0, lo = 1.16054871011417e-315, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
\name{TimeStamp} \alias{fixTimeStamp} \alias{selezionaIntervalloTimeStamp} %- Also NEED an '\alias' for EACH other topic documented here. \title{Funzioni di gestione delle date } \description{ Funzioni di gestione delle date } \usage{ fixTimeStamp(db, campoData = "created", timeRange = NULL) selezionaIntervalloTimeStam...
/man/timeStamp.Rd
no_license
Mahalanobis/TextWiller
R
false
false
1,247
rd
\name{TimeStamp} \alias{fixTimeStamp} \alias{selezionaIntervalloTimeStamp} %- Also NEED an '\alias' for EACH other topic documented here. \title{Funzioni di gestione delle date } \description{ Funzioni di gestione delle date } \usage{ fixTimeStamp(db, campoData = "created", timeRange = NULL) selezionaIntervalloTimeStam...
# library library(ggplot2) require(reshape2) #Drawing a regular box plot for Gene expression sample <- rownames(logGeneExpressionMatrix) d.f <- data.frame(sample, logGeneExpressionMatrix) d.f2 <- melt(d.f, id.vars = "sample") geneNamesplot=colnames(logGeneExpressionMatrix) #ggplot(d.f2, aes(sample, value, group = var...
/GeneExpressionggplot.R
no_license
SaraYones/AMLTCGA
R
false
false
1,651
r
# library library(ggplot2) require(reshape2) #Drawing a regular box plot for Gene expression sample <- rownames(logGeneExpressionMatrix) d.f <- data.frame(sample, logGeneExpressionMatrix) d.f2 <- melt(d.f, id.vars = "sample") geneNamesplot=colnames(logGeneExpressionMatrix) #ggplot(d.f2, aes(sample, value, group = var...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deploy.R \name{deploy_site} \alias{deploy_site} \alias{deploy_all_sites} \title{Betty Deploy} \usage{ deploy_site(path, deploy_org) deploy_all_sites(doc_root, deploy_org = "ropensci-docs") } \arguments{ \item{path}{local path of the website ...
/man/deploy.Rd
permissive
jeroen/betty
R
false
true
693
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deploy.R \name{deploy_site} \alias{deploy_site} \alias{deploy_all_sites} \title{Betty Deploy} \usage{ deploy_site(path, deploy_org) deploy_all_sites(doc_root, deploy_org = "ropensci-docs") } \arguments{ \item{path}{local path of the website ...
#' Delete journal citation #' #' @param journalCitationId (numeric) Journal citation identifier #' @param env (character) Repository environment. Can be: "production", #' "staging", or "development". #' #' @return (logical) TRUE if deleted #' #' @note User authentication is required (see \code{login()}) #' #' @family ...
/R/delete_journal_citation.R
permissive
ropensci/EDIutils
R
false
false
1,389
r
#' Delete journal citation #' #' @param journalCitationId (numeric) Journal citation identifier #' @param env (character) Repository environment. Can be: "production", #' "staging", or "development". #' #' @return (logical) TRUE if deleted #' #' @note User authentication is required (see \code{login()}) #' #' @family ...
#' --- #' title: "SIR + salt talk figure" #' author: "Emily Ury" #' date: "July 20, 2020" #' output: github_document #' --- #' setwd("C:/Users/uryem/Dropbox (Duke Bio_Ea)/My data/SNAP_compilation/SNAP_Carbon_Story") x <- read.csv("2019_SIR_salt_w_eplainers.csv") head(x) Response <- x$µg_C_CO2_hr_gC Response <...
/SIRsalt_talkFig.R
no_license
EmilyUry/SNAP_soils
R
false
false
4,492
r
#' --- #' title: "SIR + salt talk figure" #' author: "Emily Ury" #' date: "July 20, 2020" #' output: github_document #' --- #' setwd("C:/Users/uryem/Dropbox (Duke Bio_Ea)/My data/SNAP_compilation/SNAP_Carbon_Story") x <- read.csv("2019_SIR_salt_w_eplainers.csv") head(x) Response <- x$µg_C_CO2_hr_gC Response <...
##This estimates the complete C, which can be used to do inference on the effect of X on Y## library(irlba) library(parallel) #' Estimate \code{C} for a given value of \code{K} #' #' Estimate \code{C} for a given value of \code{K}. The user can also estimate Beta, the effect due to the covariates of interest by speci...
/CorrConf/R/EstimateC_complete.R
no_license
lehuyhd/CorrConf
R
false
false
15,175
r
##This estimates the complete C, which can be used to do inference on the effect of X on Y## library(irlba) library(parallel) #' Estimate \code{C} for a given value of \code{K} #' #' Estimate \code{C} for a given value of \code{K}. The user can also estimate Beta, the effect due to the covariates of interest by speci...
# define test data obs <- filter_by_availability( germany_covid19_delta_obs, date = "2021-06-19" ) dt <- fv_as_data_list(obs) test_strain_inits( "Single strain inits can be sample initial conditions as expected using default settings from fv_as_data_list", strains = 1, dt = dt ) test_strain_inits( "Two s...
/tests/testthat/test-fv_inits.R
permissive
epiforecasts/forecast.vocs
R
false
false
444
r
# define test data obs <- filter_by_availability( germany_covid19_delta_obs, date = "2021-06-19" ) dt <- fv_as_data_list(obs) test_strain_inits( "Single strain inits can be sample initial conditions as expected using default settings from fv_as_data_list", strains = 1, dt = dt ) test_strain_inits( "Two s...
#test_interactiveSet context("Testing interactive and Sankey network setups") intSet <- interactiveSet() links.d3.name <- intSet$links.d3$source nodes.d3.name <- intSet$nodes.d3$name ColourScale <- intSet$ColourScale myClick <- intSet$myClick test_that("Data interactive function create the d3 data without distruptin...
/tests/testthat/test_interactiveSet.R
permissive
DogaIster/Rview
R
false
false
648
r
#test_interactiveSet context("Testing interactive and Sankey network setups") intSet <- interactiveSet() links.d3.name <- intSet$links.d3$source nodes.d3.name <- intSet$nodes.d3$name ColourScale <- intSet$ColourScale myClick <- intSet$myClick test_that("Data interactive function create the d3 data without distruptin...
#ask for a complete database from your bioinformatics provider - no medically-relevant filtration library(dplyr) setwd("~/Desktop") file="MW_159_z1657-gatk-haplotype.txt" full_set <- read.delim(file, stringsAsFactors=FALSE) restricted = filter(full_set,is_coding==1 & is_exonic==1 & impact!='synonymous_variant' & aaf...
/cheo.genetic_counselor.R
permissive
sridhar0605/bioscripts
R
false
false
408
r
#ask for a complete database from your bioinformatics provider - no medically-relevant filtration library(dplyr) setwd("~/Desktop") file="MW_159_z1657-gatk-haplotype.txt" full_set <- read.delim(file, stringsAsFactors=FALSE) restricted = filter(full_set,is_coding==1 & is_exonic==1 & impact!='synonymous_variant' & aaf...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/naaccr_record.R \name{as.naaccr_record} \alias{as.naaccr_record} \alias{as.naaccr_record.list} \alias{as.naaccr_record.data.frame} \title{Coerce to a naaccr_record dataset Convert objects into \code{naaccr_record} objects, if a method exists....
/man/as.naaccr_record.Rd
no_license
cran/naaccr
R
false
true
1,352
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/naaccr_record.R \name{as.naaccr_record} \alias{as.naaccr_record} \alias{as.naaccr_record.list} \alias{as.naaccr_record.data.frame} \title{Coerce to a naaccr_record dataset Convert objects into \code{naaccr_record} objects, if a method exists....
#' Sample initial parameter values for the estimation routine #' @param controls A list of controls #' @return Parameters values in format \code{thetaUncon} init_est = function(controls){ M = controls[["states"]][1] N = controls[["states"]][2] scale_par = controls[["scale_par"]] build_Gamma = function(dim){ ...
/R/init_est.R
no_license
minghao2016/fHMM
R
false
false
5,509
r
#' Sample initial parameter values for the estimation routine #' @param controls A list of controls #' @return Parameters values in format \code{thetaUncon} init_est = function(controls){ M = controls[["states"]][1] N = controls[["states"]][2] scale_par = controls[["scale_par"]] build_Gamma = function(dim){ ...