Displaying 20 results from an estimated 96 matches for "x23".
Did you mean:
23
2007 Nov 26
3
Communicating from one function to another
...ular function, then make use of it later, perhaps in a
different function, without necessarily having to move it around in argument
lists. In the C community, it would be called a "global" variable.
Question 1: Is this practical at all in the R language?
Suppose the variable is called x23. I want to assign a value to it, then use
it later. Seemingly, there are two cases:
Case I is if the variable is given its value at the top level.
Case II is if it is given its value inside a user-defined function. That I
do not know how to do.
Example:
func1 <- function (){
x23 <- 2.6...
2007 Mar 10
3
long character string problem
...These are creating
trouble with subsequent programs, which I tested with strings that for some
reason do not have these double quotes (see very bottom).
> cum1
[1]
"A11*(X11*x1+X21*x2)+1*sqrt(B11*(X11*x1+X21*x2)^2+C11)A12*(X12*x1+X22*x2)+1*sqrt(B12*(X12*x1+X22*x2)^2+C12)A13*(X13*x1+X23*x2)+-1*sqrt(B13*(X13*x1+X23*x2)^2+C13)A14*(X14*x1+X24*x2)+-1*sqrt(B14*(X14*x1+X24*x2)^2+C14)A15*(X15*x1+X25*x2)+1*sqrt(B15*(X15*x1+X25*x2)^2+C15)A16*(X16*x1+X26*x2)+1*sqrt(B16*(X16*x1+X26*x2)^2+C16)A17*(X17*x1+X27*x2)+1*sqrt(B17*(X17*x1+X27*x2)^2+C17)A18*(X18*x1+X28*x2)+1*sqrt(B18*(X18*x1+X28*x2)^2...
2006 Apr 28
4
stepwise regression
Dear all,
I have encountered a problem when perform stepwise regression.
The dataset have more 9 independent variables, but 7 observation.
In R, before performing stepwise, a lm object should be given.
fm <- lm(y ~ X1 + X2 + X3 + X11 + X22 + X33 + X12 + X13 + X23)
However, summary(fm) will give:
Residual standard error: NaN on 0 degrees of freedom
Multiple R-Squared: 1, Adjusted R-squared: NaN
F-statistic: NaN on 6 and 0 DF, p-value: NA
In this situation, step() or stepAIC() will not give any useful information.
I don't know why SAS...
2009 Nov 12
2
simulated correlated vectors
Hi,
Having a vector x of float type without any assumption of its distribution (mean, variance etc), how to generate another vector that is correlated with x? Extensibility: how to simulate more than two correlated vectors (again float type and no preference for their distribution and without having vector x)?
Cheers,
Carol
2005 Aug 15
2
queer data set
I have a dataset that is basically structureless. Its dimension varies
from row to row and sep(s) are a mixture of tab and semi colon (;) and
example is
HEADER1 HEADER2 HEADER3 HEADER3
A1 B1 C1 X11;X12;X13
A2 B2 C2 X21;X22;X23;X24;X25
A3 B3 C3
A4 B4 C4 X41;X42;X43
A5 B5 C5 X51
etc., say. Note that a blank under HEADER3 corresponds to non
occurance and all semi colon (;) delimited variables are under
HEADER3. These values run into tens of thousands. I want to give som...
2018 Feb 20
5
Take the maximum of every 12 columns
...X20 = c(291.999877929688,
292.838348388672, 293.840362548828, 294.412322998047, 294.941253662109
), X21 = c(293.615447998047, 294.028106689453, 296.072296142578,
296.447387695312, 295.824615478516), X22 = c(294.719848632812,
295.392028808594, 297.453216552734, 297.114288330078, 296.883209228516
), X23 = c(295.634429931641, 296.783294677734, 298.592346191406,
297.469512939453, 297.832122802734)), .Names = c("X0", "X1",
"X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "X11"...
2018 Feb 22
2
Sink redundant spill after RA
...more shrink-wrapping
as well.
.globl _mytest
// %bb.0: // %entry
sub sp, sp, #224 // =224
stp x28, x27, [sp, #128] // 8-byte Folded Spill
stp x26, x25, [sp, #144] // 8-byte Folded Spill
stp x24, x23, [sp, #160] // 8-byte Folded Spill
stp x22, x21, [sp, #176] // 8-byte Folded Spill
stp x20, x19, [sp, #192] // 8-byte Folded Spill
stp x29, x30, [sp, #208] // 8-byte Folded Spill
ldrsw x8, [x0, #4424]
sxtw x10, w2...
2019 Jun 04
3
Incluir un rango de varias variables explicativas a un modelo
Hola, gracias por la respuesta,
No me funcionó debido a que los nombres de las variables no están seriadas,
es decir, los nombres de las variables son del tipo: x23 x25 x30, x301
x320, x80. Entonces me da este error:
Error in eval(predvars, data, env) : object 'pot24' not found. Debido a que
pot24 no existe, ya que de pot23 se brinca a pot30.
En Stata es algo muy simple de hacer, solo tengo que especificar gl
indepvars "x23-x80" y ya. En R n...
2018 Feb 22
2
Sink redundant spill after RA
...>
> // %bb.0: // %entry
>
> sub sp, sp, #224 // =224
>
> stp x28, x27, [sp, #128] // 8-byte Folded Spill
>
> stp x26, x25, [sp, #144] // 8-byte Folded Spill
>
> stp x24, x23, [sp, #160] // 8-byte Folded Spill
>
> stp x22, x21, [sp, #176] // 8-byte Folded Spill
>
> stp x20, x19, [sp, #192] // 8-byte Folded Spill
>
> stp x29, x30, [sp, #208] // 8-byte Folded Spill
>
> ldrsw x8, [x0, #44...
2018 Feb 20
3
Take the maximum of every 12 columns
...672, 293.840362548828, 294.412322998047, 294.941253662109
> > ), X21 = c(293.615447998047, 294.028106689453, 296.072296142578,
> > 296.447387695312, 295.824615478516), X22 = c(294.719848632812,
> > 295.392028808594, 297.453216552734, 297.114288330078, 296.883209228516
> > ), X23 = c(295.634429931641, 296.783294677734, 298.592346191406,
> > 297.469512939453, 297.832122802734)), .Names = c("X0", "X1",
> > "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10&qu...
2012 Nov 28
1
Help setting optimization problem to include more constraints
...ver, I would like to add the following two constraints:
# 1. weighted sums by column
# w is a vector of known constants, i.e., w = c(1.2, .9, .7, 2.3)
# r is also known, i.e., r = 4
w1*x11 + w2*x21 + w3*x21 + w4*x41 == r # col 1
w1*x12 + w2*x22 + w3*x32 + w4*x42 == r # col 2
w1*x13 + w2*x23 + w3*x33 + w4*x43 == r # col 3
# 2. By column, the number of X's greater than zero should be two or
greater. In this small example, this condition is satisfied, but I would
like to make sure that it is also satisfied in my problem.
# 3. Using lp.transport(), the function to be minimized...
2006 Mar 11
1
Non-linear Regression : Error in eval(expr, envir, enclos)
...f the form:
model1<-nls(y~beta1*(x1+(k1*x2)+(k1*k1*x3)+(k2*x4)+(k2*k1*x5)+(k2*k2*x6)+(k3*x7)+(k3*k4*x8)+(k3*k2*x9)+(k3*k3*x10)+ (k4*x11)+(k4*k1*x12)+(k4*k2*x13)+(k4*k3*x14)+(k4*k4*x15)+(k5*x16)+(k5*k1*x17)+(k5*k2*x18)+(k5*k3*x19)+ (k5*k4*x20)+(k5*k5*x21)+(k6*x22)+(k6*k1*x23)+(k6*k2*x24)+(k6*k3*x25)+(k6*k4*x26)+(k6*k5*x27)+(k6*k6*x28)+ (k7*x29)+(k7*k1*x30)+(k7*k2*x31)+(k7*k3*x32)+(k7*k4*x33)+(k7*k5*x34)+(k7*k6*x35)+(k7*k7*x36)),x, start=c(beta1=-0.001480981,k1=0.001,k2=0.001,k3=0.001,k4=0.001,k5=0.001,k6=0.001,k7=0.001),control=c(maxiter=100))...
2008 May 19
2
Help on nested FOR loops
...'for' loop to produce output that takes subscripts like:
for i taking values 1,2,3,4,5 and
j taking values 1,2,3
I want to output for a computation using the combination values of i and j a value x like this;
i j x
1 1 x11
1 2 x12
1 3 x13
2 1 x21
2 2 x22
2 3 x23
3 1 x31
3 2 x32
3 3 x33
........
.......
Need help urgently.
Thanks.
Philip
A Smile costs Nothing
But Rewards Everything
Happiness is not perfected until it is shared
-Jane Porter
[[alternative...
2018 Feb 20
0
Take the maximum of every 12 columns
...,
> 292.838348388672, 293.840362548828, 294.412322998047, 294.941253662109
> ), X21 = c(293.615447998047, 294.028106689453, 296.072296142578,
> 296.447387695312, 295.824615478516), X22 = c(294.719848632812,
> 295.392028808594, 297.453216552734, 297.114288330078, 296.883209228516
> ), X23 = c(295.634429931641, 296.783294677734, 298.592346191406,
> 297.469512939453, 297.832122802734)), .Names = c("X0", "X1",
> "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "...
2018 Feb 22
0
Sink redundant spill after RA
...more shrink-wrapping
as well.
.globl _mytest
// %bb.0: // %entry
sub sp, sp, #224 // =224
stp x28, x27, [sp, #128] // 8-byte Folded Spill
stp x26, x25, [sp, #144] // 8-byte Folded Spill
stp x24, x23, [sp, #160] // 8-byte Folded Spill
stp x22, x21, [sp, #176] // 8-byte Folded Spill
stp x20, x19, [sp, #192] // 8-byte Folded Spill
stp x29, x30, [sp, #208] // 8-byte Folded Spill
ldrsw x8, [x0, #4424]
sxtw x10, w2...
2004 Jul 23
2
retrieve rows from frame assuming criterion
...at I want is to retrieve is the frame but only with those rows matching elements of PUNTAR with a list characters (e.g c("IX49","IX48") )
Year TUR STODNR PUNTAR
1994 9412 94020061 IX49
1994 9412 94020062 IX48
1994 9412 94020063 X32
1994 9412 94020065 X23
1994 9412 94020066 X27
1994 9412 94020067 XI19
1994 9412 94020068 XI16
1994 9412 94020069 XI14
1994 9412 94020070 XI8
1994 9412 94020071 X25
1994 9412 94020072 X18
1994 9412 94020073 II23
1994 9412 94020074 XII33
1994 9412 94020075 XII31
"my...
2018 Feb 20
0
Take the maximum of every 12 columns
...48828, 294.412322998047, 294.941253662109
>> > ), X21 = c(293.615447998047, 294.028106689453, 296.072296142578,
>> > 296.447387695312, 295.824615478516), X22 = c(294.719848632812,
>> > 295.392028808594, 297.453216552734, 297.114288330078, 296.883209228516
>> > ), X23 = c(295.634429931641, 296.783294677734, 298.592346191406,
>> > 297.469512939453, 297.832122802734)), .Names = c("X0", "X1",
>> > "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", &quo...
2017 Dec 21
1
[bug report] null ptr deref in nouveau_platform_probe (tegra186-p2771-0000)
...x4d0 [nouveau]
[ 16.920729] lr : nouveau_bo_new+0x78/0x4d0 [nouveau]
[ 16.925678] sp : ffff00000a34bb40
[ 16.928980] x29: ffff00000a34bb60 x28: ffff8001f67f0598
[ 16.934280] x27: 0000000000000000 x26: ffff8001c8858c00
[ 16.939579] x25: 0000000000020000 x24: 0000000000000004
[ 16.944878] x23: 0000000000020000 x22: 0000000000000000
[ 16.950176] x21: 0000000000000000 x20: 0000000000000000
[ 16.955475] x19: ffff8001c891d000 x18: 0000000000000080
[ 16.960773] x17: 0000ffffba6a7bc0 x16: ffff000008294300
[ 16.966072] x15: 0000000000000001 x14: 000000000000002f
[ 16.971370] x13: 000...
2018 Feb 22
0
Sink redundant spill after RA
...// %entry
> >
> > sub sp, sp, #224 // =224
> >
> > stp x28, x27, [sp, #128] // 8-byte Folded Spill
> >
> > stp x26, x25, [sp, #144] // 8-byte Folded Spill
> >
> > stp x24, x23, [sp, #160] // 8-byte Folded Spill
> >
> > stp x22, x21, [sp, #176] // 8-byte Folded Spill
> >
> > stp x20, x19, [sp, #192] // 8-byte Folded Spill
> >
> > stp x29, x30, [sp, #208] // 8-byte Folded Spill
> >
&g...
2010 Dec 22
5
regression
Hi dear all,
suppose that s is a statistic code;
i have a matrix (x) which has 7 columns (1=x1,2=x23=x3,4=x4,5=x5,6=x6
and7=y)
and has 20 rows. i want to do linear reggression like
reg<-lm(x[,7]~1+x[,1]+x[,2]+.......+x[,6])
but i want to do delete i th row for nrows times and create regression model
like above and compute each models' "s" statistics and list them. but i
could n...