Displaying 20 results from an estimated 1000 matches similar to: "foreach loop, stata equivalent"
2015 Apr 21
2
How to upload new ups driver to NUT
Dear Sir ,
Can anyone tell me how to upload new ups driver to NUT website ?
Best regards,
Bluefish
[cid:image001.jpg at 01D07C3E.C4ADB780]
?? ??
?? ??????
?????(??)????
??????????107?????467?(?????)
??????5?1?A?2?4?
1-4F, Building 5, YuSheng lndustrial Park, No.467, Section Xixiang, National Highway 107,
Xixiang, Bao An District, Shenzhen, China
Tel: + 86-755-8601-6601 Ext. 8598
Fax:
2009 Apr 04
1
Problem with sample()
Hi,
I'm having a problem using sample() within a function.
Basically I get an error reading:
Error in sample(v, 1, prob = h) : non-positive probability
Can anyone advise me as to the possible origin of this error?
Here is my code
#Discretised Gillespie algorithm function (From SMfSB, D.J. Wilkinson)
gillespied=function (N, T=100, dt=1, ...)
{
tt=0
n=T%/%dt
x=N$M
2012 Dec 19
1
"For" loop and "if" question
All -
I have a large data frame that looks like
ID p1 p2 p3...p20 Lat1 Lat2 Lat3...Lat20
Long1 Long2 Long3...Long20
1 0 0 1 0 NA NA 29.xx NA
NA NA -89.xx NA
2 1 0 0 1 27.xx NA NA 29.00
-88.00 NA NA -89.xx
3 0 0 0 0 NA
2015 Apr 23
2
答复: How to upload new ups driver to NUT
Dear Hyouko,
Thank you very much !
Best regards,
Bluefish
-----????-----
???: hyouko at gmail.com [mailto:hyouko at gmail.com]
????: 2015?4?23? 7:25
???: ??(bluefish_wei)
??: nut-upsdev at lists.alioth.debian.org
??: Re: [Nut-upsdev] How to upload new ups driver to NUT
2015-04-21 8:23 GMT+02:00 ??(bluefish_wei) <bluefish_wei at voltronicpower.com.cn>:
> Can anyone tell me how to
2007 Apr 11
1
Programming Problem (for loop, random # control, 3 dimentional graph)
Dear List,
This is just a programming problem which i cannot seem
to figure out. I am trying to get a set of power from
a test (say, kolmogorov smirnov) out of a distribution
(say, G-K distribution) as follows. I am trying to
reduce to pain of writing the whole set of data points
(p# below) using "for" loop. However, I seem to have
some problem in it as the output "M" does not
2005 Feb 08
5
How to get variable names in a function?
Hello,
applying a function to a list of variables I face the following problem:
Let's say I want to compute tables for several variables. I could write a
command for every single table, like
bravo<-c(1,1,2,3,5,5,5,);charly<-c(7,7,4,4,2,1)
table(bravo); table(charly)
> table(bravo); table(charly)
bravo
1 2 3 5
2 1 1 3
charly
1 2 4 7
1 1 2 2
The results are two tables with the
2010 Feb 18
1
variable substitution
Hi
I would like to write a script that reads a list of variable names. These variable names are some of the column headers in a data.frame. Then I want do a for-loop to execute various operations on the specified variables in the data.frame, but can't figure out how to do the necessary variable substitution. In bash (or C) I would use "$var", but there seems to be no equivalent in
2003 Oct 08
2
Generating automatic plots
Hello,
I have been trying to write a small program to generate automatic plots. What
I want is to draw boxplots for some variables in my data frame, contrasting
with a variable called 'missing' that has value 1 if some variable in a
concrete case has at least one missing value, in order to check if the cases
that don't enter in my analysis are biased.
The first attempt was to
2015 Apr 28
2
答复: I love NUT
Carsten,
This is a common issue in technology when you have complex products
that the majority of consumers of those products do not understand how
they operate.
If most UPS customers understood the importance of standardization they
would have refused to purchase non-standard UPSes and all UPSes would
have long ago standardized on a single management protocol.
The normal thing is that product
2012 Mar 10
1
Treat Variable as String and a String as variables name
Dear all.
I am having ten variables (let's call the four of them as
Alpha, Beta, Gamma and Delta.....)
For each variable I have to print around 100 (plots). E
So far I was copying paste the code below many times.
pdf(file="DC_Alpha_All.pdf", width=15) # First Variable is treated as string
plot_dc_for_multiple_kapas(Alpha, 4, c(5, 4), coloridx=c(24, 32)) # First Variable is
2007 Oct 22
3
Elasticity in Leslie Matrix
Dear R-users,
I would like to calculate elasticities and sensitivities of each parameters
involved in the following transition matrix:
A <- matrix(c(
sigma*s0*f1, sigma*s0*f2,
s, v
), nrow=2, byrow=TRUE,dimnames=list(stage,stage))
The command "eigen.analysis" avaliable in package "popbio" provides
sensibility matrix and elasticity matrix
2016 Dec 13
2
syntax difference clusterExport in parallel and snow
We got some errors and eventually figured out that
parallel::clusterExport second argument is "varlist" while in
snow::clusterExport it is "list".
The user had loaded parallel first, but did something else which
inadvertently loaded snow, then clusterExport failed because we had
"varlist" and not "list".
Are these different on purpose?
pj
--
Paul E.
2010 Feb 25
3
variable substitution in for loops
Friends
I can't quite find a direct answer to this question from the lists, so here goes:
I have several dataframes, 200+ columns 2000+ rows. I wish to script some operations to perform on some of the variables (columns) in the data frames not knowing what the column number is, hence have to refer by name. I have variable names in a text file "varlist". So, something like this:
2012 Nov 24
1
Bootstrap lmekin model
Hi,I use the 'lmekin' model of the 'kinship' package of R in order to estimate heritability. I want to estimate the confidence interval of the variance coefficient and so I should use a bootstrap simulation. The pedigree file has 1386 subjects so I create a kinship matrix [1386*1386].This is the code of R I use:
kfit2 <- lmekin(IT~1+AGE +(1|ID), dati1,
2009 Oct 11
1
How do you test if a number is in a list of numbers?
Hi,
I want to subset a data frame if one of the variables matches any in a list.
I could of course do something like this:
subset(dataset, var == 1 | var == 2 | var ==3)
but that's tedious.
I tried
varlist = c(1,2,3,4)
subset(dataset, any(var == varlist))
but it doesn't work because 'any' doesn't go row-by-row and hence always
returns TRUE.
Is there any simple way to do this?
2011 Apr 15
1
no solution yet, please help: extract p-value from mixed model in kinship package
I am making the question clear. Please help.
> Dear R experts
>
> I was using kinship package to fit mixed model with kinship matrix.
> The package looks like lme4, but I could find a way to extract p-value
> out of it. I need to extract is as I need to analyse large number of
> variables (> 10000).
>
> Please help me:
>
> require(kinship)
>
> #Generating
2003 Apr 07
1
Segmentation error
Hello,
I'm using library(spatstat) and trying to use ppp on my dataset. I get a segmentation error when I try to run it. Any suggestions? Code below ...
Thanks,
Suzanne
---------------------------------------
dat <- read.delim(file="trees_R2.csv", sep=",", header=1)
P16 <- (dat$Plot == "P1") | (dat$Plot == "P2") | (dat$Plot == "P3")
2017 Nov 02
2
Why am I getting FrameIndex:i64<0> when I have no i64's?
Here's the IR I'm trying to compile for my backend, a 16-bit CPU:
; ModuleID = 'foo.c'
source_filename = "foo.c"
target datalayout =
"E-m:e-p16:16:16-i1:16:16-i8:16:16-i16:16:16-i32:16:16-i64:16:16-S16-n16"
target triple = "tms9900"
@global_var = common global i16 0, align 2
; Function Attrs: noinline nounwind optnone
define signext i16 @dothis(i16
2013 Feb 25
5
v2.2.rc2 released
http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc2.tar.gz
http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc2.tar.gz.sig
Looks like the last changes I did today just before rc1 release made it
just about unusable. This one is actually running on my servers. :)
2013 Feb 25
5
v2.2.rc2 released
http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc2.tar.gz
http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc2.tar.gz.sig
Looks like the last changes I did today just before rc1 release made it
just about unusable. This one is actually running on my servers. :)