search for: prb

Displaying 20 results from an estimated 24 matches for "prb".

Did you mean: pr
2017 Nov 01
3
repeat a function
I want to populate the matrix prb through the function HWMProb <- function (a,j,dt) that encapsulates different functions (please see code below), using j= 0:2 for each j. It only populates prb if I specify each function independently in the global environment and then run the loop with the iF statement, as per below. for (j in...
2017 Nov 02
2
repeat a function
...dt) ^ 2 + 2 * j * Mfactor(a, dt) ####### Bottom branch probability going MID BTTMProbDWN<- function( a, j, dt) 7 / 6 + (j ^ 2 * Mfactor(a, dt) ^ 2 - 3 * j * Mfactor(a, dt)) / 2 ####### Bottom branch probability going DOWN if (N>jmax) N=jmax for (j in 0:N) { if (j==0) { prb["0","1"] <<- ProbUP(a,j,dt) prb["0","0"] <<- ProbMID(a,j,dt) prb["0","-1"] <<- ProbDWN(a,j,dt) } else { if (j==jmax) { prb[paste(j,sep = ""),"1"] <<- TOPProbUP(a,j,dt)...
2017 Nov 02
0
repeat a function
...> -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of > Eric.Pueyo at avivainvestors.com > Sent: Wednesday, November 1, 2017 1:31 PM > To: r-help at r-project.org > Subject: [R] repeat a function > > I want to populate the matrix prb through the function HWMProb <- function > (a,j,dt) that encapsulates different functions (please see code below), using j= > 0:2 for each j. > > It only populates prb if I specify each function independently in the global > environment and then run the loop with the iF statement,...
2017 Nov 03
0
repeat a function
...####### Bottom branch probability going MID > BTTMProbDWN<- function( a, j, dt) 7 / 6 + (j ^ 2 * Mfactor(a, dt) ^ 2 - 3 * j * > Mfactor(a, dt)) / 2 ####### Bottom branch probability going DOWN > > if (N>jmax) N=jmax > > for (j in 0:N) { > if (j==0) { > prb["0","1"] <<- ProbUP(a,j,dt) > prb["0","0"] <<- ProbMID(a,j,dt) > prb["0","-1"] <<- ProbDWN(a,j,dt) > } > else { > if (j==jmax) { > prb[paste(j,sep = ""),"1"] &lt...
2008 Apr 29
1
A Maze Generator
...1:length(z))] <- 0 while (any(is.na(z))) { xx <- list(z[c(2:N, N),], z[,c(1, 1:(N-1))], z[c(1, 1:(N-1)),], z[,c(2:N, N)]) xx[[1]][N,] <- NA; xx[[2]][,1] <- NA; xx[[3]][1,] <- NA; xx[[4]][,N] <- NA prb <- rep(1, 4); prb[i] <- p for (i in sample(1:4, prob=prb)) { q <- !is.na(xx[[i]]) & is.na(z) if (!any(q)) next z[s(which(q))] <- i break } } z } set.seed(1) plotMaze(makeMaze(10), main="Simple Maze") p...
2011 Jun 02
0
mChoice prb in rms
Dear all, I?m trying to get a output table for age and the summary of a and b, stratified by epo as follows using summary.formula h<-data.frame(a=sample(c("A",NA),100,replace=T),b=sample(c("B",NA),100,replace=T),age=rnorm(100,50,25),epo=sample(c("Y","N"),100,T)) library(rms)
2010 Aug 29
2
glm prb (Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : )
glm(A~B+C+D+E+F,family = binomial(link = "logit"),data=tre,na.action=na.omit) Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors with 2 or more levels however, glm(A~B+C+D+E,family = binomial(link = "logit"),data=tre,na.action=na.omit) runs fine glm(A~B+C+D+F,family = binomial(link =
2011 Feb 07
0
Combining the results from two simple linear regression models
...th a regression on the summed data. Below is a program to reproduce what I am trying to figure out. ### aslp=50 bslp=-50 sda=20 sdb=100 yrs=0:10 a= rnorm(11,100,sda)+aslp*yrs b= rnorm (11,1000,sdb)+bslp*yrs ma=lm(a~yrs) mb=lm(b~yrs) pra=predict(ma,data.frame(yrs=yrs),interval='confidence') prb=predict(mb,data.frame(yrs=yrs),interval='confidence') ##combine the two regressions for a single equation with confidence intervals pr=pra+prb###it couldn't be this simple, could it? #by hand co=coef(ma)+coef(mb) new.sigma=sqrt(summary(ma)$sigma^2+summary(mb)$sigma^2) fit=co[1]+co[2]*...
2010 Jan 13
1
Running Asterisk & Freepbx on readonly Root (Stateless System)
Hi I am trying to Run AsteriskNow 1.5 which uses Centos 5.3 Distribution with Readonly Root Filesytem. Right now if I shutdown the system abrupty or there is power failure linux kernel doesn't not boot "Kernel panic" and other short of issues.prb due to corrupted files. Thats why i want to make root filesystem as read-only and placing some directories /var and /etc/asterisk etc as read/write in fstab so above problem doesn't exists. Centos Provides fantastic experimental technolyg with only a single line configuration to root read-onl...
2012 Nov 19
0
expand time period
...L, 1L, 1L, 2L, 1L, 4L, 1L, 2L, 2L, 1L, 3L, 1L), .Label = c("Datafolha", "Ibope", "Verit?", "Vox Populi"), class = "factor"), Serra.PSDB = c(24, 22, 23, 19, 22, 17, 17, 21, 19, 20, 21, 20, 22, 22, 27, 26, 26, 30, 31.4, 31), Russomanno.PRB = c(23, 22, 25, 27, 30, 34, 34, 35, 35, 32, 35, 31, 31, 31, 31, 26, 25, 26, 17.7, 24), Haddad.PT = c(20, 22, 19, 18, 18, 18, 17, 15, 15, 17, 16, 16, 14, 14, 8, 9, 6, 7, 9.5, 6), Chalita.PMDB = c(11, 11, 11, 10, 9, 7, 5, 8, 6, 8, 7, 5, 7, 5, 6, 5, 5, 6, 4.3, 6), Others = c(8, 7,...
2009 Apr 01
1
Vector of Vectors
...<- merge(v, x) > v [,1] [,2] attr(,"row.names") integer(0) > v[1] [1] NA > As you can see, vectors aren't very cooperative and lists are downright baffling to me. Shawn Garbett <shawn.p.garbett at vanderbilt.edu> Vanderbilt Cancer Biology 220 Pierce Ave, PRB 715AA Nashville, TN 37232 Office: 615.936.1975 Cell: 615.397.8737
2008 Jul 01
4
Errno::EIO - Input/output error
hi all, my appl works well but i get the following error suddenly for few pages. to resolve this, i had to restart the server everytime. then it works fine for some time, but after some time it appears again. this is happening contineously. i searched for solution on this, but didn''t get much. can anybody help in this plaese? any help will be greatly appreciated... i''ve pasted
2010 Apr 27
1
cca standard error species
Dear all, I realised a correspondence analysis with function cca() of vegan library. Just like in Okansen (2010) in the example of R help: library(vegan) data(varespec) data(varechem) vare.cca<-cca(varespec~ Al + P + K, varechem) With plot.cca() function I represented the species matrix in the next way: plot(vare.cca,display="species") Being similar to: plot((c(-2,2)),(c(-2,2)),
2008 May 05
7
extract and assign xml values to variable
hi, how can we assign an xml element value to some variable in controller? e.g. if we have <order> <id>1</id> <name>abc</name> <location>xyz</location> </order> and if we want value of name i.e. ''abc'' to be assigned in a variable declared in a controller, say order_controller, like this- temp = "value of xml element
2007 Aug 17
1
Connecting a GSM gateway to a FXO port
...figure the GSM gateway behave in such a way that Asterisk correctly detects the call being connected. 2) I configure Asterisk to work with this device. The problem is that I looked thru the configuration options of the gateway and I could not find anything that made sense to me in relation to this prb. What (how) is the gateway supposed to signal back that the call is connected? If I know what is needed I can go back to my supplier with the right questions. If the gateway can not be configured properly, I want to know how I could configure Asterisk to work around this problem and make it work...
1999 Jul 16
0
Contractor needed for MSVC wrapper to Loess
...data transformation, this would be a good thing. If that's not possible, I would like to have cloess from Netlib compiled under MSVC++, either linked by g77 or f2c or other fortran compiler. I am trying to make sure the final version is available to public. It does not seem to be a major prb from our stand point, but that may change. If developer wishes not to disclose his sources to public. That's fine with us. We, however, need full sources, projects, obj, and exec files. Please submit bid with timeframe and qualification back to this e-mail. The objective is quickly implent...
2009 Oct 06
0
Bifurcating Autoregression
...model? I've been reading the Huggins and Staudte paper, "Variance Components Models for Dependent Cell Populations", from the Journal of the American Statistical Association, 1994. Shawn Garbett <shawn.p.garbett at vanderbilt.edu> Vanderbilt Cancer Biology 220 Pierce Ave, PRB 715AA Nashville, TN 37232 Office: 615.936.1975 Cell: 615.397.8737
2002 Jan 02
1
Man page for RC3
...his electric stream. and my tears in league with the wires and energy and my machine. this is my beautiful dream. im hurting no one... " - Underworld... -----BEGIN PGP SIGNATURE----- Version: PGP 6.5i iQA/AwUBPDKe22TEJfkS6tEjEQKnJgCgwYmdvkj+BCO5vxVAryRjQgYGDYkAni+i EusmX+s++d2tiifITvFgkekf =+PRB -----END PGP SIGNATURE----- <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body....
2009 Nov 29
1
optim or nlminb for minimization, which to believe?
...#list("coefficients" = opt$par, "LogLik" = -opt$value, "Std.Error" = 1/sqrt(diag(opt$hessian))) opt } ### latex describing the likelihood function \documentclass{article} \usepackage{latexsym} \usepackage{amssymb,amsmath,bm} \newcommand{\Prb}{\operatorname{Prob}} \title{Marginal Maximum Likelihood for IRT Models} \author{Harold C. Doran} \begin{document} \maketitle The likelihood function is written as: \begin{equation} \label{eqn:mml} f(x) = \prod^N_{i=1}\int_{\Theta}\prod^K_{j=1}p(x|\theta,\beta)f(\theta)d\theta \end{equation} \noind...
2005 Jan 26
3
DC++ 0.668 - Annoying "tooltips"
Hello there ? There were folks in the recent time running DC++ on wine. I'm also one of them, and I have a small problem, which turns out to be very annoying. The action buttons at the top of the main DC++ window as well as tabs at the bottom tend to show "tooltips" containing information about the last files to be hashed. However, there is an error somewhere that these tooltip