Displaying 20 results from an estimated 35 matches for "z_1".
Did you mean:
z_
2010 Nov 03
1
Orthogonalization with different inner products
Suppose one wanted to consider random variables X_1,...X_n and from each subtract off the piece which is correlated with the previous variables in the list. i.e. make new variables Z_i so that Z_1=X_1 and Z_i=X_i-cov(X_i,Z_1)Z_1/var(Z_1)-...- cov(X_i,Z__{i-1})Z__{i-1}/var(Z_{i-1}) I have code to do this but I keep getting a "non-conformable array" error in the line with the covariance. Does anyone have any suggestions? Here is my code:
gov=read.table(file.choose(), sep="\t...
2006 Nov 07
1
gamm(): nested tensor product smooths
...n the mixed model representation of additive models, testing among others
y=f(x1)+f(x2) vs y=f(x1)+f(x2)+f(x1,x2)
(testing for additivity)
In mixed model representation, where X represents the unpenalized part of the spline functions and Z the "wiggly" parts, this would be:
y=X%*%beta+ Z_1%*%b_1+ Z_2%*%b_2
vs
y=X%*%beta+ Z_1%*%b_1+ Z_2%*%b_2 + Z_12 %*% b_12
where b are random effect vectors and the hypothesis to be tested is
H_0: Var(b_12)=0 (<=> b_12_i == 0 for all i)
the problem:
gamm() does not seem to support the use of nested tensor product splines,
does anybody know ho...
2011 Apr 05
2
Animation for pers3d
Hello all,
I use persp3d from the rgl-package to plot a sruface. The typical call
is persp3d(x, y, z)
With cooridinate-vectros x, y and a function-values matrix z.
Now I have different z's, say z_1,...,z_n
Question:
Is it possible to generate an animation from a sequence of such calls,
for different z's?
I would like to see how the surface is beeing changed in the time.
Thank you
Grigory Alexandrovich
2019 Aug 25
2
Conventions: Use of globals and main functions
...stly equivalent to the Python idiom. It the script runs from
Rscript, then it will run main(). It also lets you source() the
script, and debug its functions, test them, etc. It works best if all
the code in the script is organized into functions.
Gabor
On Sun, Aug 25, 2019 at 6:11 AM Cyclic Group Z_1 via R-devel
<r-devel at r-project.org> wrote:
>
> In R scripts (as opposed to packages), even in reproducible scripts, it seems fairly conventional to use the global workspace as a sort of main function, and thus R scripts often populate the global environment with many variables, which...
2011 Apr 16
1
spatstat regression troubles
...drature scheme
944 data points, 2828 dummy points
Total weight 1098.64
How do I use the Quadrature to model my intensity based off of those two covariates and an intercept term alpha? In mathematical terms, if \lambda is my intensity function, I want to estimate \lambda(s;b) = exp(alpha + b_1 * Z_1 + b_2 * Z_2).
Thank you for your help! I really appreciate it.
Kind regards,
Greg R.
2019 Aug 15
2
Feature request: non-dropping regmatches/strextract
I do think keeping the default behavior is desirable for backwards compatibility; my suggestion is not to change default behavior but to add an optional argument that allows a different behavior. Although this can be implemented in a user-defined function, retaining empty matches facilitates programmatic use, and seems to be something that should be available in base R. It is available, for
2019 Aug 26
2
Conventions: Use of globals and main functions
...iggering a warning about it
if some environment variable were set, as is being done for non-scalar &&
and ||.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sun, Aug 25, 2019 at 5:09 PM Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> On 25/08/2019 7:09 p.m., Cyclic Group Z_1 wrote:
> >
> >
> > This is a fair point; structuring functions into packages is probably
> ultimately the gold standard for code organization in R. However, lexical
> scoping in R is really not much different than in other languages, such as
> Python, in which use of main...
2019 Aug 25
2
Conventions: Use of globals and main functions
This is a fair point; structuring functions into packages is probably ultimately the gold standard for code organization in R. However, lexical scoping in R is really not much different than in other languages, such as Python, in which use of main functions and defining other named functions outside of main are encouraged. For example, in Scheme, from which R derives its scoping rules, the
2019 Aug 25
10
Conventions: Use of globals and main functions
In R scripts (as opposed to packages), even in reproducible scripts, it seems fairly conventional to use the global workspace as a sort of main function, and thus R scripts often populate the global environment with many variables, which may be mutated. Although this makes sense given R has historically been used interactively and this practice is common for scripting languages, this appears to
2019 Aug 15
4
Feature request: non-dropping regmatches/strextract
A very common use case for regmatches is to extract regex matches into a new column in a data.frame (or data.table, etc.) or otherwise use the extracted strings alongside the input. However, the default behavior is to drop empty matches, which results in mismatches in column length if reassignment is done without subsetting.
For consistency with other R functions and compatibility with this use
2019 Jun 15
0
Bionic beaver repository issues
...nstalled? ? ? ? ? ? ? Recommends: r-doc-html but it is not going to be installed
for the first installation attempt. The lines in the first message reflect a later installation attempt after installing from the Ubuntu standard repos.
Best,B On Friday, June 14, 2019, 09:17:17 PM CDT, Cyclic Group Z_1 <cyclicgroup-z1 at yahoo.com> wrote:
Hello,
I appear to have a similar issue as?Willem Ligtenberg (Disco Dingo repository issues,?Thu May 2 19:01:04 CEST 2019), except on a completely fresh installation of Ubuntu?18.04 LTS (Bionic Beaver). After updating and upgrading packages and adding...
2019 Aug 15
0
Feature request: non-dropping regmatches/strextract
..., function(x)paste(paste0(x, "."),collapse=""), "")
[1] "J.D." "." "J.M."
(We don't want e e cummings initials mapped to "NA.")
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Thu, Aug 15, 2019 at 12:15 AM Cyclic Group Z_1 via R-devel <
r-devel at r-project.org> wrote:
> A very common use case for regmatches is to extract regex matches into a
> new column in a data.frame (or data.table, etc.) or otherwise use the
> extracted strings alongside the input. However, the default behavior is to
> drop em...
2019 Aug 15
0
Feature request: non-dropping regmatches/strextract
...#39;data.frame': 3 obs. of 2 variables:
$ Name : chr "Groucho" "" "Harpo"
$ Address: chr "groucho at marx.com" "chico at marx.com" ""
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Thu, Aug 15, 2019 at 11:31 AM Cyclic Group Z_1 <cyclicgroup-z1 at yahoo.com>
wrote:
> I do think keeping the default behavior is desirable for backwards
> compatibility; my suggestion is not to change default behavior but to add
> an optional argument that allows a different behavior. Although this can be
> implemented in a u...
2019 Aug 25
0
Conventions: Use of globals and main functions
...stly equivalent to the Python idiom. It the script runs from
Rscript, then it will run main(). It also lets you source() the
script, and debug its functions, test them, etc. It works best if all
the code in the script is organized into functions.
Gabor
On Sun, Aug 25, 2019 at 6:11 AM Cyclic Group Z_1 via R-devel
<r-devel at r-project.org> wrote:
>
> In R scripts (as opposed to packages), even in reproducible scripts, it seems fairly conventional to use the global workspace as a sort of main function, and thus R scripts often populate the global environment with many variables, which...
2019 Aug 26
0
Conventions: Use of globals and main functions
On 25/08/2019 7:09 p.m., Cyclic Group Z_1 wrote:
>
>
> This is a fair point; structuring functions into packages is probably ultimately the gold standard for code organization in R. However, lexical scoping in R is really not much different than in other languages, such as Python, in which use of main functions and defining othe...
2019 Aug 29
0
Feature request: non-dropping regmatches/strextract
..._re_match, and
tidyr::extract. For a more detailed discussion see my R journal submission
(under review) about regular expression packages,
https://raw.githubusercontent.com/tdhock/namedCapture-article/master/RJwrapper.pdf
Comments/suggestions welcome.
On Thu, Aug 15, 2019 at 12:15 AM Cyclic Group Z_1 via R-devel <
r-devel at r-project.org> wrote:
> A very common use case for regmatches is to extract regex matches into a
> new column in a data.frame (or data.table, etc.) or otherwise use the
> extracted strings alongside the input. However, the default behavior is to
> drop em...
2019 Aug 29
0
Feature request: non-dropping regmatches/strextract
...9;d be happy to entertain patches or at least more specific
suggestions to improve strextract() and strcapture(). I hadn't
exported strextract(), because I wasn't quite sure how it should
behave. This feedback should be helpful.
Thanks,
Michael
On Thu, Aug 29, 2019 at 2:20 PM Cyclic Group Z_1 via R-devel
<r-devel at r-project.org> wrote:
>
> Thank you, I am aware that there are packages that can accomplish this. I mentioned stringr::str_extract as a function that does not drop empty matches. I think that the behavior of regmatches(..., regexpr(...)) in base R should permit a...
2019 Aug 30
0
Feature request: non-dropping regmatches/strextract
...We
could allow strcapture() to accept an atomic vector as a prototype,
which would do what you want for regexec() (NA on no match, empty
string on empty capture). Then we could call the regexpr()-based
function strextract().
What do you think?
Michael
On Thu, Aug 29, 2019 at 3:27 PM Cyclic Group Z_1
<cyclicgroup-z1 at yahoo.com> wrote:
>
> Thank you! I greatly appreciate your consideration, though of course it is up to you. I think many people switch to stringr/stringi simply because functions in those packages have some consistent design choices, for example, they do not drop empt...
2019 Sep 02
2
Feature request: non-dropping regmatches/strextract
I think that's a good reason for not including this in regmatches; you're right, its name is somewhat suggestive of yielding matches. Also, that sounds like a great design for strcapture with an atomic prototype.
Best,
CG
2019 Sep 02
0
Feature request: non-dropping regmatches/strextract
...We might add a
new function later that combines the regexpr() and regmatches() steps.
The gregexpr() and regexec() inputs are both lists so it's not clear
whether a "nomatch" value would be relevant (the elements are empty)
in those cases.
On Mon, Sep 2, 2019 at 11:38 AM Cyclic Group Z_1
<cyclicgroup-z1 at yahoo.com> wrote:
>
> I think that's a good reason for not including this in regmatches; you're right, its name is somewhat suggestive of yielding matches. Also, that sounds like a great design for strcapture with an atomic prototype.
>
> Best,
> CG...