Appellants Gloria Steinem, Patricia Carbine and Ms. Magazine Corp. (Ms. Magazine) seek to overturn an order by Judge Gerard L. Goettel in the United States District Court for the Southern District of New York dismissing without prejudice their counterclaims for libel against appellee Elizabeth Forsling Harris, who appears pro se. Since we find that the counterclaims were permissive within the meaning of Federal Rule of Civil Procedure 13(b), the district court’s order of dismissal for lack of jurisdiction is affirmed.
*121 I
The individual appellants and appellee Harris were the founders and original owners of Ms. Magazine. In early 1972, Harris sold a substantial portion of her stock back to Ms. Magazine. Thereafter, Ms. Magazine apparently concluded negotiations to sell a sizeable block of its stock to a prominent company, thereby enhancing the value of previously issued Ms. Magazine stock. In June 1975, Harris sued appellants in the district court, alleging that they had violated the securities laws when her stock was repurchased over three years earlier. 1 The gravamen of Harris’s complaint was that appellants had failed to disclose to her their material ongoing negotiations with an outside investor. These undisclosed transactions were further alleged to have “significantly increased the value” of the stock sold. In their answer, appellants denied these contentions, and counterclaimed for libel based both on the complaint itself, which was alleged to have been “brought maliciously,” and also on several subsequent published statements of Harris concerning her lawsuit. Appellee Harris generally denied the allegations of the counterclaims and specifically contended that her responses to reporters’ inquiries “referred solely to the allegations contained in the Complaint which was ... a matter of public record.”
Initially, pre-trial discovery proceeded smoothly, but in May 1976, Judge Goettel found it necessary to orally order Harris to “appear for continuation of her deposition on or before June 20, 1976.” When this order was ignored, Judge Goettel issued a written order similarly directing Harris to appear on or before July 22, 1976. Again Harris failed to comply, 2 and in August 1976 Judge Goettel properly dismissed her complaint with prejudice. Although this last order specifically retained jurisdiction over the counterclaims, the judge subsequently decided that he should dismiss the counterclaims as well. In a memorandum opinion, filed in August 1977, the judge held that the early dismissal of the complaint warranted the discretionary dismissal of what he perceived to be compulsory counterclaims. This appeal followed.
II
With certain exceptions,
3
Rule 13(a) requires a litigant to “state as a counterclaim any claim . . . if it arises out of the transaction or occurrence that is the subject matter of the opposing party’s claim . ,”
4
Such counterclaims are denominated compulsory, and no independent basis of federal jurisdiction is needed for the court to adjudicate the ancillary issues thus raised, if the main claim itself presents
*122
a cobrable federal issue. See, e. g.,
Moore v. New York Cotton Exchange,
As indicated above, Judge Goettel viewed appellants’ counterclaims as compulsory, but held that in light of the early pre-trial dismissal of the main action, the counterclaims should be dismissed without prejudice as an exercise of the court’s discretion to decline ancillary jurisdiction. A district court may decline to exercise its jurisdiction over
pendent
claims,
7
see
United Mine Workers v. Gibbs,
supra,
Appellants agree with the district court that their counterclaims were compulsory, but strongly urge that a Gibbs analysis is inappropriate here. Pointing out that the plaintiff in Gibbs brought parallel claims in the federal forum of his choice, appellants emphasize that, as defendants, they have *123 been dragged into a court not of their own choosing and have been forced by Rule 13(a) to plead their counterclaims. Appellants further contend that Gibbs is inapplicable because the mandatory language of Rule 13(a), which requires a party to raise compulsory counterclaims, imposes a parallel duty on the federal courts to hear them. 9 Although these are intriguing questions, 10 we need not resolve them, because we do not agree with the major premise of appellants’ arguments, namely, that their counterclaims are compulsory within the meaning of Rule 13(a).
Ill
The operative language of Rule 13, which differentiates compulsory from permissive counterclaims, reads as follows: “arises out of the transaction or occurrence that is the subject matter of the opposing party’s claim . . . .” Although courts and commentators have formulated various tests to determine what constitutes the same “transaction or occurrence,”
11
this circuit, relying on the Supreme Court’s interpretation of Rule 13’s predecessor,
12
has long looked to the “logical relationship” between the claim and the counterclaim.
13
This flexible approach to Rule 13 problems attempts to analyze whether the essential facts of the various claims are so logically connected that considerations of judicial economy and fairness dictate that all the issues be resolved in one lawsuit. See
Columbia Plaza Corp. v. Security National Bank,
supra,
With these considerations in mind, we turn to the facts at bar. Appellee Harris claimed that her sale of stock to appellants in 1972 was fraudulently induced under both state and federal law. Such allegations focus on the details of the negotiations and the material financial information about Ms. Magazine known to the individu
*124
al appellants and not disclosed to Harris at the time of the transaction complained of. In contrast, appellants’ counterclaim was based on the filing of the complaint in 1975 and the “even more remote” subsequent publicity surrounding the suit.
Bose Corp. v. Consumers Union of the United States, Inc.,
In addition, Judge Goettel correctly observed that “the counterclaim, while artfully drafted, in essence is a claim for malicious prosecution” and it is well settled that
[a] claim in the nature of malicious prosecution, which arises out of the bringing of the main action, generally cannot be asserted either as a compulsory or a permissive counterclaim, since such a claim is premature prior to the determination of the main action. (Emphasis supplied).
3 Moore’s Federal Practice ¶ 13.13, at ,13-308 (2d ed. 1974). See also
Solomon v. Bruchhausen,
Based upon the above analysis, we hold that appellants’ counterclaims are not compulsory as defined by Rule 13(a). We realize that this Rule should be generously construed, see, e. g.,
Columbia Plaza Corp. v. Security National Bank,
supra,
Under our earlier decisions, we must dismiss this permissive counterclaim since it is not “supported by independent jurisdictional grounds.”
17
O’Connell v. Erie Lackawanna Railroad Co.,
supra,
Judgment affirmed.
Notes
. Harris’s complaint based jurisdiction on the Securities Exchange Act of 1934, 15 U.S.C. § 78aa, with pendent jurisdiction, see note 7 infra, over three common law causes of action. No diversity jurisdiction existed under 28 U.S.C. § 1332 since all parties were citizens of New York. (Appellant Ms. Magazine is a Delaware corporation, but its principal place of business is New York, see 28 U.S.C. § 1332(c)).
. Appellee specifically stated through her lawyers that she no longer wished to prosecute her claims.
. The Rule itself excepts four types of counterclaims: (a) claims that have not matured at the time of pleading, (b) claims whose adjudication requires the presence of third parties not subject to the jurisdiction of the court, (c) claims that are the subject of a pending suit at the time the main action was filed, and (d) claims where the main action is proceeding without personal jurisdiction over the defendant, i. e., quasi in rem jurisdiction. See generally 3 Moore’s Federal Practice ¶ 13.14 (2d ed. 1974).
. Rule 13(a) provides:
Compulsory Counterclaims. A pleading shall state as a counterclaim any claim which at the time of serving the pleading the pleader has against any opposing party, if it arises out of the transaction or occurrence that is the subject matter of the opposing party’s claim and does not require for its adjudication the presence of third parties of whom the court cannot acquire jurisdiction. But the pleader need not state the claim if (1) at the time the action was commenced the claim was the subject of another pending action, or (2) the opposing party brought suit upon his claim by attachment or other process by which the court did not acquire jurisdiction to render a personal judgment on that claim, and the pleader is not stating, any counterclaim under this Rule 13.
. There is some disagreement as to the nature of the bar, that is, whether it is an estoppel, waiver, or bar in the nature of res judicata. See Wright, Estoppel By Rule: The Compulsory Counterclaim Under Modern Pleading, 38 Minn.L.Rev. 423, 428-31 (1954).
. Rule 13(b) provides:
Permissive Counterclaims. A pleading may state as a counterclaim any claim against an opposing party not arising out of the transaction or occurrence that is the subject matter of the opposing party’s claim.
. A pendent claim is a cause of action without independent federal jurisdictional basis, brought by a party who is also asserting a substantial federal claim. The pendent and federal claims must share “a common nucleus of operative fact.”
United Mine Workers
v.
Gibbs,
. Conversely, a district court may in proper circumstances retain its jurisdiction and adjudicate the merits of the compulsory counterclaim even though the main claim has been dismissed. See
Moore v. New York Cotton Exchange,
supra,
. Appellants also argue that, assuming that the district court had discretion to decline jurisdiction, dismissal was an abuse of discretion.
. Compare 3 Moore’s Federal Practice ¶ 13.-15[1], at 13-382 to -383 (2d ed. 1974) (discretion to dismiss compulsory counterclaim apparently thought to exist) and Comment, Pendent and Ancillary Jurisdiction: Towards a Synthesis of Two Doctrines, 22 U.C.L.A.L.Rev. 1263, 1284-86 (1975) with P. Bator, P. Mishkin, D. Shapiro & H. Wechsler, Hart and Wechsler’s The Federal Courts and the Federal System 925 (2d ed. 1973) (questioning whether the considerations regarding parallel claims and counterclaims are the same).
. Other suggested tests exclusively focus on the overlap of issues, facts or evidence between the original claim and the counterclaim, or the res judicata effect, Rule 13(a) aside, of a judgment against the counterclaimant in the main action. See generally Wright, Estoppel By Rule, supra note 5, at 437-45; see also,
Pipelin
ers
Local Union No. 798 v. Ellerd,
supra,
. See
Moore v. New York Cotton Exchange,
supra,
. See, e. g.,
United States v. Heyward-Robinson Co.,
Other circuits appear to follow the same analysis, see, e. g.,
Columbia Plaza Corp. v. Security National Bank,
. It is conceivable, although unlikely, that Harris could have won on the merits of her complaint but lost on the counterclaim, if the alleged libelous statements concerned matters other than the stock sale.
. But cf.
Mennen Co.
v.
Krauss Co., 37
F.Supp. 161, 164 (E.D.La.1941), rev’d on other grounds,
. Cases involving counterclaims based on libelous publications contemporaneous with the transaction complained of in the main suit, see, e. g.,
Independence Tube Corp. v. Copperweld Corp.,
. The counterclaim is based on state law and no diversity of citizenship exists between the parties, see note 1 supra.
. A logical concomitant of extending ancillary - jurisdiction to permissive counterclaims is the express recognition of district court discretion to decline that jurisdiction, see Comment, Pendent and Ancillary Jurisdiction, supra note 10, at 1285-87; 3 Moore’s Federal Practice ¶ 13.-19[1], at 13-486 to -488.
. Upon questioning at oral argument, counsel for appellants informed us that there was no problem with the state statute of limitations because it was tolled during the pendency of the federal action. See N.Y.C.P.L.R. § 203(d).
